Thank you so much, Jeffcobb! while( !fin.eof() ) was the problem... I'm done now. :)
Type: Posts; User: Makaila
Thank you so much, Jeffcobb! while( !fin.eof() ) was the problem... I'm done now. :)
what code would you use to put this:
1.question
answer1
answer2
answer3
answer4
2.question
answer1
answer2
Well this is just a part of the code... further on I have a loop that write questions and answes... but there is nothing. So I was wondering is my code for reading from a file to a structure correct?
Hey guys! Could you help me here?
I have a Data Base.txt file. It contains:
1. First question
answer1
answer2
answer3
answer4
2. Second question
Could somebody tell me is this the correct way to read from a txt file?
this is the content of a file:
1. Which one isn't for Object oriented programming? // question
1) Java
2) C++
3)...
oh, pok_dat is the name for ptr in my program, I forgot to rename it to ptr for this thread.
And, thanks a lot for the advice... It is ok now.
Hello!
I have a problem to read data from a Database.txt file. The file contains the questions and answers for the quiz, and I have to read it from a file and put it to a structure so I can use it...
Hi!
I've got an assignment to make a word association game.
It should look like this: 5 main items that are the final solutions for 5 games, 4 sub items that describe each of the main items and 3...
ok, thanks! I have managed to put this array in function
I have to make a union of two arrays and each of them has <=20 elements. So I was thinking to form the third array which will contain the elements for a union. Some like this:
The union is a...