c++ Builder noob going crazy

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
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top