- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I was wondering if anyone knew of a good library to use for making gui's in c++. You should know that i know of winprog but the problem is that its c. I don't want c because i haven't learned c. I would like to use something that you code … |
|
For some reason i cant output to a file unless it was already created. Here's my code. [code] fstream myfile; myfile.open (filename.c_str(), ios_base::in); if (!myfile) { myfile.close(); myfile.open (filename.c_str(), ios::out); avatar.name = name; avatar.init(); myfile << "Name = " << avatar.name << endl; myfile << "hp = " << avatar.hp … |
|
Hello i'm having trouble reading from files from fstream. I want to skip a word but don't know how to do so with input from files. [code] myfile >> avatar.name >> avatar.name >> avatar.name; myfile >> avatar.hp >> avatar.hp >> avatar.hp; myfile >> avatar.mana >> avatar.mana >> avatar.mana; myfile >> … |
|
I was wondering if its possible to specify the name of a file being created with a variable yet still specify the extension for the file. Example: [code] string name; cin >> name; ofstream myfile; myfile.open(name".sta", ios::out); [/code] i was wondering if you could do something of the sort i … |