#include "stdafx.h"
#include "windows.h"
#include "iostream"
#include "stdlib.h"
#include "climits"
#include "string"
using namespace std;
struct act
{
char ch[101];
float a;
double c;
};
int main(int argc, char* argv[])
{
act ch1=
{
"asdasdasd",
1.0,
2
};
cout<<ch1.a<<endl;
cout<<ch1.c<<endl;
cout<<ch1.ch<<endl;
system("pause");
return 0;
}
结构体输出
最新推荐文章于 2023-02-26 15:09:30 发布