2006-08-19
09:13:39
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
#include
void playgame();
void loadgame();
void playmultiplayer();
int main()
{
int input;
printf( "1. Play game\n" );
printf( "2. Load game\n" );
printf( "3. Play multiplayer\n" );
printf( "4. Exit\n" );
printf( "Selection: " );
scanf( "%d", &input );
switch ( input ) {
case 1: /* Note the colon, not a semicolon */
playgame();
break;
case 2:
loadgame();
break;
case 3:
playmultiplayer();
break;
case 4:
printf( "Thanks for playing!\n" );
break;
default:
printf( "Bad input, quitting!\n" );
break;
}
getchar();
}
the errors are:
swirch.obj : error LNK2001: unresolved external symbol _playmultiplayer
swirch.obj : error LNK2001: unresolved external symbol _loadgame
swirch.obj : error LNK2001: unresolved external symbol _playgame
2006-08-19
10:50:30 ·
update #1