|
|
1>------ Build started: Project: Red Blue Card Game, Configuration: Debug Win32 ------ 1>Build started 8/21/2011 7:16:10 PM. 1>InitializeBuildStatus: 1> Touching "Debug\Red Blue Card Game.unsuccessfulbuild". 1>GenerateTargetFrameworkMonikerAttribute: 1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 1>ClCompile: 1> MAIN.cpp 1>MAIN.cpp(17): error C2371: 'd' : redefinition; different basic types 1> MAIN.cpp(13) : see declaration of 'd' 1>MAIN.cpp(34): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data 1>MAIN.cpp(39): error C2088: '>>' : illegal for class 1>MAIN.cpp(40): error C2088: '==' : illegal for class 1>MAIN.cpp(40): error C2088: '==' : illegal for class 1>MAIN.cpp(41): error C2109: subscript requires array or pointer type 1>MAIN.cpp(44): error C2088: '==' : illegal for class 1>MAIN.cpp(44): error C2088: '==' : illegal for class 1>MAIN.cpp(45): error C2109: subscript requires array or pointer type 1>MAIN.cpp(74): error C2601: 'SETVALUES' : local function definitions are illegal 1> MAIN.cpp(61): this line contains a '{' which has not yet been matched 1>MAIN.cpp(83): error C2601: 'RULES' : local function definitions are illegal 1> MAIN.cpp(61): this line contains a '{' which has not yet been matched 1>MAIN.cpp(107): fatal error C1075: end of file found before the left brace '{' at 'MAIN.cpp(83)' was matched 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:01.20 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
system("Pause");
already has a message saying to press any key.
|
|
1>------ Build started: Project: Red Blue Card Game, Configuration: Debug Win32 ------ 1>Build started 8/21/2011 8:39:30 PM. 1>InitializeBuildStatus: 1> Touching "Debug\Red Blue Card Game.unsuccessfulbuild". 1>GenerateTargetFrameworkMonikerAttribute: 1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 1>ClCompile: 1> MAIN.cpp 1>MAIN.cpp(34): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data 1>MAIN.cpp(41): error C2109: subscript requires array or pointer type 1>MAIN.cpp(45): error C2109: subscript requires array or pointer type 1>MAIN.cpp(77): error C2109: subscript requires array or pointer type 1>MAIN.cpp(77): error C2059: syntax error : '{' 1>MAIN.cpp(77): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(77): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(78): error C2109: subscript requires array or pointer type 1>MAIN.cpp(78): error C2059: syntax error : '{' 1>MAIN.cpp(78): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(78): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(79): error C2109: subscript requires array or pointer type 1>MAIN.cpp(79): error C2059: syntax error : '{' 1>MAIN.cpp(79): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(79): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(80): error C2109: subscript requires array or pointer type 1>MAIN.cpp(80): error C2059: syntax error : '{' 1>MAIN.cpp(80): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(80): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(102): error C2146: syntax error : missing ';' before identifier 'endl' 1>MAIN.cpp(102): warning C4551: function call missing argument list 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.76 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
Errors wrote: |
---|
1>MAIN.cpp(41): error C2109: subscript requires array or pointer type 1>MAIN.cpp(45): error C2109: subscript requires array or pointer type 1>MAIN.cpp(77): error C2109: subscript requires array or pointer type (sic) |
Errors wrote: |
---|
1>MAIN.cpp(77): error C2059: syntax error : '{' 1>MAIN.cpp(77): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(77): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(78): error C2109: subscript requires array or pointer type 1>MAIN.cpp(78): error C2059: syntax error : '{' 1>MAIN.cpp(78): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(78): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(79): error C2109: subscript requires array or pointer type 1>MAIN.cpp(79): error C2059: syntax error : '{' 1>MAIN.cpp(79): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(79): error C2143: syntax error : missing ';' before '}' 1>MAIN.cpp(80): error C2109: subscript requires array or pointer type 1>MAIN.cpp(80): error C2059: syntax error : '{' 1>MAIN.cpp(80): error C2143: syntax error : missing ';' before '{' 1>MAIN.cpp(80): error C2143: syntax error : missing ';' before '}' (sic) |
Errors wrote: |
---|
1>MAIN.cpp(102): error C2146: syntax error : missing ';' before identifier 'endl' 1>MAIN.cpp(102): warning C4551: function call missing argument list (sic) |
|
|
|
|
|
|
|
|
|
|
Error E2120 main.cpp 6: Cannot call 'main' from within the program in function main() |
cin.get ();
only requires the user to hit enter. If you are getting input data before the use of the function (cin>>
and getline as well I think), use cin.clear ();
or cin.sync ();
(or both) before cin.get ();