#include
using namespace std;
class student
{
public:
student()
{
}
student(char *id,char *name,int age)
{
strcpy(stuId,id);
strcpy(stuName,name);
stuAge = age;
}
void display()
{
cout<<"学号:"<
private:
char stuId[10];
char stuName[20];
int stuAge;
};
int main()
{
student st("001","yingxing",10);
st.display();
return 0;
}