结构体

发布时间 2023-11-18 09:51:09作者: 宝钗醉打林黛玉
#include <iostream>
using namespace std;
struct a{
	int shuchu;
	string name;
	int a(int shuchu){
		return shuchu*2;
	}
}s1;
int main(){
	s1.name="阿萨达";
	s1.shuchu=2314312;
	cout<<s1.name<<endl;
	cout<<s1.shuchu<<endl;                                             
	return 0;
}