- Joined
- Sep 18, 2006
- Messages
- 1
- Reaction score
- 0
Hey I'm trying to make a program in C++ Builder with which you could take testes with 3 or 4 possible answers.
I'm trying to read the questions and answers from a .txt file which would look something like this:
2//number of questions
What is my name?
Jane
Dan
Muddy
BlahBlah
3//the correct answer
How old am I?
1
2
3
17
4/corr ans
How do I use the f.getline command to get questions, ans1,ans2,ans3 and ans4 from the file? (I don't know the exact term in english for the v)
Please...if you could help me I would be grateful...maybe my idea isn't right...
PS: I'm new here... joined today...how do I add an avatar? I can't see any options anywhere...just a "show no avatar" button which cannot be unchecked
I'm trying to read the questions and answers from a .txt file which would look something like this:
2//number of questions
What is my name?
Jane
Dan
Muddy
BlahBlah
3//the correct answer
How old am I?
1
2
3
17
4/corr ans
How do I use the f.getline command to get questions, ans1,ans2,ans3 and ans4 from the file? (I don't know the exact term in english for the v)
Please...if you could help me I would be grateful...maybe my idea isn't right...
PS: I'm new here... joined today...how do I add an avatar? I can't see any options anywhere...just a "show no avatar" button which cannot be unchecked
Last edited: