For some reason it keeps telling me that game is undeclared this is a dev project file btw,Code:#include <iostream> #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <ctype.h> using namespace std; int main(int argc, char *argv[]) { char choice; printf("\n"); Sleep(100); printf("\n"); Sleep(100); printf("\n"); Sleep(100); printf("\t\t\t By Me\n"); Sleep(100); printf("\n"); Sleep(100); putchar('\n'); Sleep(100); printf("\t\t\t [N]ew Game\n"); printf("\t\t\t [Q]uit\n"); Sleep(100); printf("\n"); Sleep(100); printf("\n"); choice=toupper(getch()); for(;;) { if(choice=='N') { game(); break; } if(choice=='Q') { break; } } return 0; }
I named the file game and the function in the file is called game i added the file to the project i dont under stand why it is not working