[求助]如何修改这个C++类程序,编译通不过?
#include <stdio.h>
#include <iostream.h>
class c
{
public:
int i;
c(int n):i(n)
{
}
~c()
{
cout<<i;
}
};
class b : public c
{
public:
b(int n):c(n+1), i(n)
{
//i = n;
}
~b()
{
cout<<i;
}
};
int main()
{
b myb(1);
return 0;
}