Thank you very much for your help, ispil. I did everything you said, but it still won't work. Somehow, i managed to delete the project, so i just copied in my original text form above in to a new project and fixed everything you said after that. It gives me the following errors:
1>------ Build started: Project: tic tac toe med hjelp2, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(41): error C2065: 'PlayersTurn' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(42): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(43): error C2181: illegal else without matching if
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(44): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(60): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(63): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(66): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(69): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(72): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(75): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(78): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(81): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(84): error C2065: 'PlayerMark' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(85): error C2181: illegal else without matching if
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(91): error C2061: syntax error : identifier 'iValidMove'
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(95): error C2061: syntax error : identifier 'cout'
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(132): error C2065: 'PlayersTurn' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(139): error C2146: syntax error : missing ')' before identifier 'cout'
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(141): error C2065: 'PlayAgain' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(143): error C2065: 'y' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(155): error C2065: 'PlayersTurn' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(158): error C2065: 'iPlayAgian' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(161): error C2065: 'PlayerTurn' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(162): error C2065: 'PlayerTurn' : undeclared identifier
1>c:\users\synne\documents\visual studio 2010\projects\tic tac toe med hjelp2\tic tac toe med hjelp2\main.cpp(164): error C2065: 'PlayerTurn' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't understand them. A lot of them says something about my variables being undeclared, but thought i declared them. What am i doing wrong here? And what do you mean by "no one playing"? I thought the iPlayerChoice (which sould have been an integer) was asking for what the player wanted to do:
char iPlayersChoice;
cin >> iPlayersChoice;
And i know i should probably not have stuffed everything inside the main(), but thats what HE
http://xoax.net/cpp/crs/console/lessons/Lesson9/ did. Is there a problem with my do-while loop? You stated that the iValidMove was useless since it didn't recuired new input. I thought it continued to ask for input in iPlayerChoice untill it made sure it was a number between 1-9. Am i wrong? Thanks again. I'm gratefull for your help :)