69,369
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#define MaxSize 1000
using namespace std;
struct //这样是可以的但是如果加上typedef就不行了。
//typedef这个修饰符是指你定义了一个变量名,而没有声明变量
{
int i;
int j;
}s[MaxSize];
int main()
{
int count=-1;
count++;
s[count].i=1;
s[count].j=1;
system("pause");
return 0;
}