hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait();
But it still states that the object is included in other files... halp plz?
//header file definition
extern void wait(void)
{
char c = getchar();
while (c != '\n')
c = getchar(); }
and here's tjhe main file snippet....
//main cpp file
//including stuff..
// prototype
void wait(void);
// then use as
wait();
why doesn't this work?