Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / QFileStream

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. QFileStream
#741
Posted by: 2003-01-19 17:09:32
I want to make a vocabulary quiz game:
The program reads a file with definitions and the matching words.
The definitions are randomized.
The first definition is given and the player types in the answer(word).
The program checks if the definition matches the word from the read file.
The program gives the next random definition and so on...

Is there a way to randomize the "line numbers" from the file and read the definition with that line number?
Message2. QStringList
#742
Posted by: guidance 2003-01-20 21:02:46
Try QStringList.LoadFromFile first, don't operate the lines in the file directly.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2024-10-6  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0