|
-
May 11th, 2010, 06:01 PM
#1
confused with I/O
This is an add on of my post earlier. My game has 5.txt files. Each one has 10 different facts about that specific category. When the user selects a category it goes into a switch and I want to assign each switch to a specific text file, open the text file and print one fact to the screen. I know how to get data from one .txt manipulate it and output it to another but I just want the program to open the file and print one fact to the screen then ask the user if they want another fact. I am confused about how to do this because when i use
cout it just outputs what i put in the parenthesis. what am i missing here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|