#include "stdafx.h"
#include "windows.h"
#include "iostream"
#include "stdlib.h"
#include "climits"
#include "string"
using namespace std;
struct act
{
string ch;
float a;
double c;
};
int main(int argc, char* argv[])
{
act ch1=
{
"asdasdasd",
1.0,
2
};
act ch2=
{
"qweqweqwe",
2.0,
3
};
cout<<ch1.a+ch2.a<<endl;
cout<<ch1.c+ch2.c<<endl;
cout<<ch1.ch+ch2.ch<<endl;
system("pause");
return 0;
}
扩展
最新推荐文章于 2024-12-16 22:04:20 发布