This code won't compile:
#include <iostream>
using namespace std;
class CR
{
public:
int cope;
};
int main()
{
CR::cope = 20;
return 0;
}
Quote
error: invalid use of non-static data member 'CR::cope'
Posted 28 April 2012 - 05:32 AM
#include <iostream>
using namespace std;
class CR
{
public:
int cope;
};
int main()
{
CR::cope = 20;
return 0;
}
Quote
Posted 28 April 2012 - 06:02 AM
Posted 01 May 2012 - 08:32 PM
0 members, 1 guests, 0 anonymous users