|
Post by Prone on Jan 9, 2007 16:06:58 GMT -8
Guys, this, once compiled, will allow you to type in a question and answer, and the standard triviahost format for questions and answers will be applied to the question and answer, and it will put it inside of a file called Questions.txt in the default path (same as the program.) #include <iostream> #include <fstream> using namespace std;
int main()
{ ofstream qa; string question; string answer; char choice;
do { qa.open ("questions.txt", ios::app); cout << "Enter a question: "; getline (cin, question); qa << "Q: " << question; cout << endl; cout << "Now enter an aswer for the question: "; getline (cin, answer); qa << "*" << answer << "\n"; cout << "Enter another one? (Y/N)"; cin >> choice; cin.ignore(); qa.close();
} while (choice == 'y' || choice == 'Y'); return 0; }
Sorry I couldn't send it as a file. We can't do that yet.
|
|
|
Post by Prone on Jan 10, 2007 15:33:01 GMT -8
Am I being ignored, or just no one has any feedback?
|
|
dxlightning
Platinum Membership
[ss:LostPeon's Gray][ss:LostPeon's Gray]
Posts: 1,246
|
Post by dxlightning on Jan 10, 2007 16:52:54 GMT -8
I have feedback but I'm holding it back on account of being a nice guy this week.
|
|
|
Post by rabidgecko on Jan 10, 2007 18:03:44 GMT -8
haha, naw i just dont think anyone really cares
|
|
|
Post by Prone on Jan 10, 2007 20:24:38 GMT -8
Perhaps I wasn't clear enough on my first post go to www.download.com/Bloodshed-Dev-C-/3000-2069_4-10498828.html?tag=lst-0-1Download the package, and follow the steps afterwards. then once its installed, run the program, and copy the above code and paste it in the program, then hit ctrl+F9 then it should compile. the file that is compiled is in c:\dev-cpp\[filename].cpp and dx, you have nothing good to say, thats why you say nothing. (I didn't mean to be rude, but you started it.)
|
|
|
Post by tyrantisius on Jan 11, 2007 12:32:32 GMT -8
Do you really think anyone will download anything from a link you give us?
Stop trying to change shit.
|
|
|
Post by Prone on Jan 11, 2007 14:22:25 GMT -8
download.com is one of the safest download hosts out there. Get with it.
|
|
|
Post by rabidgecko on Jan 11, 2007 15:29:40 GMT -8
prone, its not the fact that download.com isnt a reliable website, its the fact that you are giving tyrant the link, that is making him say that Get with it.
|
|
|
Post by Prone on Jan 11, 2007 17:15:19 GMT -8
Did I explicitely say in the first post that the program was for tyrant? No, I didn't.
|
|
|
Post by rabidgecko on Jan 11, 2007 18:51:59 GMT -8
wow prone you just dont get it do you....
you are cut... off the team... good bye, thanks for coming out, maybe next year
|
|
|
Post by Prone on Jan 11, 2007 19:09:26 GMT -8
prone, its not the fact that download.com isnt a reliable website, its the fact that you are giving tyrant the link, that is making him say that Get with it. Just be more clear in your words, so I can tell that you meant that i was giving the link for all of us, and not just tyrant.
|
|
|
Post by Prone on Jan 11, 2007 20:11:01 GMT -8
Being that I'm in such a good mood, I have removed my last post calling you, rabid, to stop talking to me for a month. I realize that everyone has limits, and I've found my way past them. Oh well.
|
|
|
Post by tyrantisius on Jan 11, 2007 22:51:48 GMT -8
prone, its not the fact that download.com isnt a reliable website, its the fact that you are giving tyrant the link, that is making him say that Get with it. Just be more clear in your words, so I can tell that you meant that i was giving the link for all of us, and not just tyrant. What, you don't think I know that? Christ kid. No one wants your links.
|
|
|
Post by Prone on Jan 12, 2007 10:13:33 GMT -8
Ok, Everything is fine now. Just don't bring this thread up anymore, unless you want that code or something.
|
|