#include "stdafx.h"
#include "windows.h"
#include "string"
#include "iostream"
using namespace std;
struct Student
{
int num;
string name;
int age;
};
int main(int argc,char *argv)
{
Student sid = {00010,"wangzhanzhi",18};
Student * prt;
prt = &sid;
prt -> num = 10101;
prt -> name = "wang";
prt -> age = 17;
cout<<prt->age<<endl<<prt->name<<endl<<prt->num<<endl;
system("pause");
return 0;
}
莫名其妙的数据结构学习过程
最新推荐文章于 2024-06-11 23:58:04 发布