You need to write a tester that saves tests (in any form — txt, forms, etc., as long as it works) and creates their own, a kind of MyTestX. The interface does not matter, as long as the user is able to create, open and pass these tests. Who has any ideas how to implement it?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Vladimir Martyanov , Grundy , user194374, Pavel Parshin , aleksandr barakin 19 Feb '16 at 9:41 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • If you want, you can accept the answer, or wait for a better idea. - DelphiM0ZG
  • If you are satisfied with C ++ and Qt, look at sourceforge.net/projects/keduca used to work, but it has not been updated for a long time - sercxjo

2 answers 2

There may be several ideas here - it all depends on what you want from the testing program. It can be implemented on the basis of the database, if you need to ensure that users who pass the test are saved, as well as other information related to the test. If not based on the database, then through typed files. Something like this: there is a record object (and a file of the same type), in which the question, the number of answer choices, and 2 arrays: the first array of strings is the answer choices, and the second is a logical array in which the correct answers are indicated. You can see an example in M. E. Flenov’s book The Delphi Bible - there is a version of the testing program in the last chapter (I did not type it).

  • Thank you very much, sorry I can’t repay my reputation) - SveZHak

I wrote an example test program here . The program itself works, but there is no saving the result. Saving the result can be easily added.

  • @kff, there was a link to hashcode, this is not an external resource. :) - VenZell
  • @VenZell Oops ... Sorry. Did not look ... - user194374