#include
#include
#include
using namespace std;
struct a1
{
string name;
int age;
int score;
};
struct st
{
int id;
string name;
int age;
struct a1 z;
};
int main() {
struct st t;
t.id = 10000;
t.name = "老王";
t.age = 50;
t.z.name = "小王";
t.z.age = 20;
t.z.score = 60;
cout << " 老师:" << t.id << " 名字:" << t.name << " 年龄:" << t.age
<< " 小王:" << t.z.name << " 年龄:" << t.z.age << " 分:" << t.z.score << endl;
cout << "__________________________" << endl;
system("date/t"), system("time/t");
return 0;
}
加上
#include <windows.h>