c++ - Visual Studio, Defined Function Not Recognized? -
i using visual studio professional 2013. have attached header file function prototypes main file. compiler saying "'assignnum': identifier not found." have absolutely no clue what's wrong, figured else might. here's relevant code:
main file
#include "bullets.h" #include "stdafx.h" #include <ctime>`enter code here` #include <cstdlib> int main() { srand(time(null)); greetings(); assignnum(); return 0; }
header file
#include "stdafx.h" using namespace std; void greetings(); void assignnum();
if using precompiled header feature...
#include "stdafx.h"
must first line in cpp file. remove h file.
Comments
Post a Comment