T
Tony Johansson
Hello!
I have two very small classes(Head_1 and Head_2) see below and a very small
main.
I have run into a very strange problem. This program doesn't compile but if
I replace
the string type in class Head_2 with for example an int it compile.
If I put a comment out the class definition Head_1 it also compile.
I can't understand this so can anyone explain this to me. I would be very
glad.
#include "head..h"
int main()
{
Head_2 slask2;
return 0;
}
//This is Head..h
**************
class Head_1
{
public:
private:
};
class Head_2
{
public:
private:
string test;
};
Many thanks.
//Tony
I have two very small classes(Head_1 and Head_2) see below and a very small
main.
I have run into a very strange problem. This program doesn't compile but if
I replace
the string type in class Head_2 with for example an int it compile.
If I put a comment out the class definition Head_1 it also compile.
I can't understand this so can anyone explain this to me. I would be very
glad.
#include "head..h"
int main()
{
Head_2 slask2;
return 0;
}
//This is Head..h
**************
class Head_1
{
public:
private:
};
class Head_2
{
public:
private:
string test;
};
Many thanks.
//Tony