第1个回答 2013-10-17
#include<iostream>
using namespace std;
class student
{
public:
student(long number,string name,string system,stringjiguan,long postalcode);
~student();
void Displayinfo(number,name,system,jiguan,postalcode);
void modifyinfo(long a);
private:
long number;
string name;
string system;
stringjiguan;
long postalcode;
}
void class::Displayinfo(number,name,system,jiguan,postalcode)
{
cout<<"class: "<<number <<"name: "<<name <<"system: "<<system< <"jiguan: "<<jiguan <<"postalcode: "<<postalcode<<endl;
}
void class::modifyinfo(long a)
{
number=a;
}
int main()
{本回答被网友采纳