Original Post
i get this error 'timerUpdate': identifier not found every time i try to compile, im using visual c++ 05 and installed the sdk,can anyone help me,thanks #include "game.h" #include <windows.h> #include <conio.h>/*old c head*/ #include <iostream> using namespace std; bool Game::run(void) { char key =' ';/*=space*/ startTime=timeGetTime(); frameCount = 0; while (key!='q') { while(!getInput(&key)) { timerUpdate(); } cout<<"Here's what you pressed:"<<key<<endl; } cout<<frameCount<<endl; cout<<"End of the Game"<<endl; return true; } bool Game::getInput(char *c) { if(kbhit())/*if key is hit go here*/ { *c=getch(); return true; } return false; } void Game :: timeUpdate(void) { frameCount++; }