I am having a problem with my file includes, I get this error, and I don't see why because it is in the project:
Error 1 error C1083: Cannot open include file: 'shop.h': No such file or directory c:\users\dylan\documents\visual studio 2013\projects\robot masters - text based\code\functions.cpp 2 1 Robot Masters - Text Based
main.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13
#include "functions.h"
#include "shop.h"
int main()
{
welcome();
caller();
std::cout << "" << std::endl; // for testing
system("pause"); // for testing
return 0;
}
Update: my code files were in the wrong place, i put them in the right place now but im still getting errors:
Error 2 error C3861: 'displayShop': identifier not found c:\users\dylan\documents\visual studio 2013\projects\robot masters - text based\code\functions.cpp 47 1 Robot Masters - Text Based
In 'functions.cpp' you haven't actually included 'shop.h' which contains the prototype for the function you are trying to call. You may have included it in 'main.cpp' but that only includes it in the scope of that source file, therefore you need to include it in your functions source file too.