- Code: Select all
#include <iostream>
using namespace std:
int main(int argc, char* argv[])
{
int Dividend = 1;
cout << "Dividend: ";
cin >> Dividend;
int Divisor = 1;
cout << "Divisor: ";
cin >> Divisor;
int Result = (Dividend/Divisor);
cout << Result << end1;
// Note: You must type something before the Enter key
char StopCharacter;
cout << end1 << "Press a key and \"Enter\": ";
cin >> StopCharacter;
return 0;
}
but when i go an put that into the dev-C++ it always comes up with some crap about it not liking line 3 (the one with the namespace) and a "building error"
here is what it says:
3 C:\Dev-Cpp\main.cpp expected `;' before ':' token
3 C:\Dev-Cpp\main.cpp expected unqualified-id before ':' token
3 C:\Dev-Cpp\main.cpp expected `,' or `;' before ':' token
C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1
i get that all the time but i dont understand how to realy fix it