i get this:Code:#include <iostream> using namespace std; int main() cint >> x; { switch (x) {; Case 1: cout << "X = 1"; Case 2: Cout << "x=2"; Case 3: cout << "x =3"; Case else cout << "x ="; cout << n; } system( "pause" ) return 0; }
ompiling...
Cpp1.cpp
C:\Program Files\Microsoft Visual Studio\VC98\Projects\Cpp1.cpp(6) : error C2146: syntax error : missing ';' before identifier 'cint'
C:\Program Files\Microsoft Visual Studio\VC98\Projects\Cpp1.cpp(6) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Cpp1.exe - 2 error(s), 0 warning(s)





Reply With Quote