A wierd error in a 16 line code.
So today I am learning about objects and classes, and for some reason I get an error in the
return 0;
Can someone please help?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
class ALEXSCLASS {
public:
void PrintFunction(){
cout << "My name is Alex" << endl ;
}
};
int main()
{
ALEXSCLASS AlexsObject ;
AlexsObject.PrintFunction()
return 0;
}
| |
You've got no semi-colon at the end of line 14.
Topic archived. No new replies allowed.