It's clearly me that is the problem. Could someone point out what I'm doing wrong. I have some really abstract ideas I'd like to try but I can't get past the basics. Thanks.
The code:
#include <cstdlib>
#include <iostream>
//using namespace std;
using std::cout;
using std::endl;
class Test_Class
{
Public:
int var1;
int var2;
};
int main(int argc, char *argv[])
{
Test_Class example;
system("PAUSE");
return EXIT_SUCCESS;
}
The errors:
Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Projects\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Projects\Makefile.win" all g++.exe -c main1.cpp -o main1.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" main1.cpp:11: error: expected primary-expression before "int" main1.cpp:11: error: ISO C++ forbids declaration of `Public' with no type main1.cpp:11: error: expected `;' before "int" make.exe: *** [main1.o] Error 1 Execution terminated


Sign In
Create Account


Back to top









