急!求C语言结构体程序

2025-02-22 23:38:41
推荐回答(2个)
回答1:

#include
#include
#include
using namespace std;
struct Student
{
int num;
string name;
char sex;
int age;

};
int main()
{
Student stu={201105410,"luo ya tao",'b',22 };
cout<<"num : "< cout<<"name: "< cout<<"sex : "< cout<<"age : "< return 0;
}

回答2:

这个这么简单 ,自己好好想想先,对自己要求严格点