I am trying to read a map from text file to an array by using a member function of a class but I am getting lots of errors which don't indicate where the problem is...Though, I believe it's in the member function loadEasyMap(char Map[][8]) because my code ran before using it.
Don't include <fstream> in the header file (unless you are actually using it in the header file itself). And NEVER EVER say using namespace std in a header. Let the user of the header file decide if they want to dump std into the global namespace or not.
You need to include <iostream> as well as <fstream> in the source file.
You are missing an opening brace at the end of the first for statement.
tpb (380)
Don't include <fstream> in the header file (unless you are actually using it in the header file itself). And NEVER EVER say using namespace std in a header. Let the user of the header file decide if they want to dump std into the global namespace or not.
You need to include <iostream> as well as <fstream> in the source file.
You are missing an opening brace at the end of the first for statement.
return 0 is outside of main!
Ouch sometimes it takes someone else to look at your code so that you can find silly mistakes..Thank you :)