Is there a problem with class CObject now ?
Why is there an error in(char *name, int m_nLife) ?
Why does the word "I need a discriminator" come out ?
Code:
#include <iostream>
using namespace std;
class S {
public:
char *_name; //name
static int m_nNum; //consecutive numbers
int m_Life = 0; //life
private:
class CObject(char *name, int m_nLife) //circular object
{
};
class Displaymethod(char *_name, int objnum, int objnum) {
};
};
void main()
{
CObject ObjectOrg(); //Still under development
}
: confused: