#include
using namespace std;
class A {
private:
int i;
int j;
int k;
public:
A(){}
A(int a,int b,int c){
i=a;
j=b;
k=c;
}
void display(){
cout< }
};//少了一个分号
int main()
{
A aa(1,2,3);
aa.display();
cout<<"libinrong"<cin.get();
return 0;
}
#include
using namespace std;
class A {
int k;
int i;
int j;
public:
A(){}
A(int a,int b,int c) {
i = a;
j = b;
k = c;
}
void display() {
cout< }
}; // 这个分号不能少
int main() {
A aa(1,2,3);
aa.display();
cout<<"libinrong"<return 0;
}
#include
using namespace std;
class A
{
private:
int i;
int j;
int k;
public:
A(){}
A(int a,int b,int c)
{
i=a;
j=b;
k=c;
}
void display()
{
cout< }
};//小错误,这里的分号
int main()
{
A aa(1,2,3);
aa.display();
cout<<"libinrong"<return 0;
}