命令 :gedit test.c //使用文本阅读软件打开文本
#include"stdio.h"
typedef enum state{
LOGIN,
LOGOFF,
ALLCHAT,
}c_state;
typedef struct info{
c_state type;
}INFO;
int main(int argc, const char *argv[])
{
INFO info;
info.type=0;
if(info.type==LOGIN)
{
printf("is ok\n");
}
return 0;
}