When I run this (trying to use the tutorials) I get a 'parse error before if' for line 30 (see notes in code). I can't figure out why!
Code:#include <iostream.h> #include <conio.h> int playgame(int a); int loadgame(int b); int multiplayer(int c); int main() { int input; cout<<"1. Play game"<<endl; cout<<"2. Load game"<<endl; cout<<"3. Play multiplayer"<<endl; cout<<"4. Exit"<<endl; cin>>input; switch (input) { case 1: playgame(1); break; case 2: loadgame(2); break; case 3: multiplayer(3); break; case 4: return 0; default: cout<<"Error, bad input, quitting"; } } int playgame(if (a==1) //parse error before 'if' { <<cout"Game loading..."; }) int loadgame(if (b==2) { <<cout"Loading saved game..."; }) int multiplayer(if (c==3) { <<cout"Multiplayer game loading..."; }) { return 0; }