又忘了 struct{} 要如何初始化 了 Google 搜竟然好难搜 @@"struct QQ{ int *p1; int *p2; float f;} QQ_001 {NULL, NULL, 123.456 }; // 失败 失败 失败 失败 失败 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 struct QQ { int *p1; int *p2; float f; } ;QQ QQ_001 {NULL, NULL, 123.456 }; struct QQ { int *p1; int *p2; float f; }QQ_001={NULL,NULL,123.456}; struct QQ{ int *p1; int *p2; float f;} QQ_001 = {NULL, NULL, 123.456 }; 不行耶 编译还是错误 unexpected token '{' following declaration of QQ_001 [20分]刚解决类的构造问题,还有一点疑问 如何向外接ps2口设备发送数据 请问如何清除液晶显示器上的灰尘? 在vc.net新建一个win32控制抬程序,输入: 请问如何编程获得显示器物理(可显示区域的)尺寸等参数? 当老爸啦。散分。 一个关于子窗体的问题! 菜鸟问题——临时文件 菜鸟提问,得分良机 怎样得到我的运行程序所在的目录? 为什么消息无法响应? 帮我改下这个程序的结果……拜托了……………………
{
int *p1;
int *p2;
float f;
} ;
QQ QQ_001 {NULL, NULL, 123.456 };
struct QQ
{
int *p1;
int *p2;
float f;
}QQ_001={NULL,NULL,123.456};
{
int *p1;
int *p2;
float f;
} QQ_001 = {NULL, NULL, 123.456 };
不行耶 编译还是错误 unexpected token '{' following declaration of QQ_001