#include <cstdlib>
#include <iostream>
using namespace std;
struct myStruct{
int a;
void f();
};//struct 必须加分号结束
int myStruct;
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
c++沿用c的传统,允许结构名与其他数据类型有重名的情况
最新推荐文章于 2024-05-03 06:46:46 发布