Tuesday, 15 July 2014

c++ - Visual Studio, Defined Function Not Recognized? -


I'm using Visual Studio Professional 2013 I've attached my main file to my main file with a function prototype. The compiler is saying that "no": identifier is not found. " I do not have any clue that is wrong, but I thought someone else might have relevant code here:

Main file

  #include "Bullets.h" #include "stdafx.h" #include & lt; Ctime & gt; 'Enter Code Here' # Include & lt; Cstdlib & gt; Int main () {srand (time (faucet)); Greetings(); AssignNum (); Return 0; }  

header file

  #include using "stdafx.h" namespace std; Zero greetings (); Specify zero ();  

If you are using the precompiled header feature ...

  #include "stdafx.h"  

Your CPP file must have the First line. Remove it from your H file.


No comments:

Post a Comment