Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~444 People Reached
Favorite Forums
Favorite Tags
c++ x 10
Member Avatar for rockstar8577

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 …

Member Avatar for rockstar8577
0
186
Member Avatar for rockstar8577

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 …

Member Avatar for rockstar8577
0
102
Member Avatar for rockstar8577

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 >> …

Member Avatar for jonsca
0
84
Member Avatar for rockstar8577

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 …

Member Avatar for rockstar8577
1
71