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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -