The thing is, I've worked on various MUD's before, and done some other program manipluation, I've never just been able to just sit and type out what I want and have it work.
I don't want to change languages because the whole purpose of this project is to help me learn the C++ language better, not achieve the actual end result.
I also don't want to have something similar sitting right there, because I would be prone to just steal ideas from that instead of coming up with my own solutions and such.
With fstream, does it create a new line for each variable you throw in there?
Like the output file would be something neat like this...
player.name = John
player.level = 7
Also, do you guys know anywhere where I could find how to split up the program so I have files for player functions (save, attack), and other ones for handling other parts of the game?
Can you use a variable instead of "output.txt" ??
EDIT: After playing around with the fstream for a little bit, I am thinking that the input is just interpreted by the program as in int or char or whatever type it is, then defined, and each sequencial one, seperated by a space, is a different variable. Is this right?
Ahh, how would I input a string, all i'm getting is the first letter!
Just so you know what's going on...
using namespace std;
in >> variable >> charlie;
cout << "If this works, I own.\n" << variable << "\n" << charlie << endl;
my output.txt looks like (7 charlie)
What I get is...
If this works, I own.