#include <iostream>
using namespace std;
int main() {
typedef struct
{
int num;
char f;
}S;
S s;
s.num = 10;
s.f = 040;
int a = s.num;
cout<<"num="<<a;
}
#include <iostream>
using namespace std;
int main() {
typedef struct
{
int num;
char f;
}S;
S s;
s.num = 10;
s.f = 040;
int a = s.num;
cout<<"num="<<a;
}
本文标题:C++ C 都可以用的定义结构体
本文链接:https://www.haomeiwen.com/subject/mxvbrktx.html
网友评论