C:\Documents and Settings\Matt\My Documents\tictactoe.c|1|error: iostream: No such file or directory|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|2|error: cstdlib: No such file or directory|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|3|error: ctime: No such file or directory|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|4|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'|
C:\Documents and Settings\Matt\My Documents\tictactoe.c||In function 'main':|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|10|error: 'cout' undeclared (first use in this function)|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|10|error: (Each undeclared identifier is reported only once|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|10|error: for each function it appears in.)|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|11|error: 'cin' undeclared (first use in this function)|
C:\Documents and Settings\Matt\My Documents\tictactoe.c|12|error: 'endl' undeclared (first use in this function)|
||=== Build finished: 9 errors, 0 warnings ===|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
char r, p, s, name;
cout << "user: please enter your name- ";
cin >> name;
cout << "hello " << name << "!!!" << endl;
system("pause");
return 0;
}
|