Can Anyone advise me on the problem with the namespace in this code im getting an error.
//Main.
#include "Weapon.h"
#include "Room.h"
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream myfile;
string line;
myfile.open("BronzeSword.txt");
if (myfile.is_open())
{
while ( myfile.good() )
{
getline (myfile,line);
cout << line << endl;
}
myfile.close();
}
else{
throw("GAME FILE LOADING FAILED!");
}
getchar();
getchar();
};