H
hpy_awad
I was writing an example from a book of Borland C++. At is wrote as it
is. I found those errors :
Can't have a non-inline function in a local class
Identifier GetX can't have a type qualifier.
Here is the code :
*-----------------
#include <stdio.h>
main (void)
{
enum boolean { false , true };
// This the second method of declaration
struct point
{
int X,Y;
boolean visible;
int GetX2();
};
int point::GetX()
{
int n=9;
return n;
};
return 0;
}
is. I found those errors :
Can't have a non-inline function in a local class
Identifier GetX can't have a type qualifier.
Here is the code :
*-----------------
#include <stdio.h>
main (void)
{
enum boolean { false , true };
// This the second method of declaration
struct point
{
int X,Y;
boolean visible;
int GetX2();
};
int point::GetX()
{
int n=9;
return n;
};
return 0;
}