<分区>
为什么会弹出此错误(对于 int index = -1)。这是代码段:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#define Offset 12
int num_frames;
struct node
{
struct node* next;
long data;
};
struct page
{
int index = -1;
int frame = -1;
int dirty = 0; //0 is clean, 1 is dirty
int valid = 0; //0 is not, 1 is valid
int referenced = 0; //0 is not, 1 is referenced
};
如有任何见解,我们将不胜感激!