mardi 9 juillet 2019

Need some tips for exam tomorrow

I'm taking my exam tomorrow and for that I'd like to get some tips on how to code as fast as possible. We will be coding on a computer, using the latest version of Qt Creator as IDE and C++ 11. I know from working with Eclipse with Java previously, that Eclipse can create entire classes based on one reference alone and I'd like to know if something similar is possible with Qt Creator too. For example, if I implement a header file, is it possible to create the source file (*.cpp) as stub?

Furthermore, I am certain that the first task will require me to create multiple classes to be used for object creation later first, and then to parse a text file (*.txt) in order to create objects for which I set up the classes earlier. The text file will be structured like this: [Object identifier] | [value1] | [value2] | .... I will have to check if one reference contains all values and if the values are legitimate. The last part of the first task will most likely be a simple unit test, where I have to test if a value of a certain object is as expected.

The second task will ask of me to sort the objects and remove duplicates, which are stored in a vector<>, based on a given variable.

These task in themselves are not that challenging and with enough time, I'd be able to code all that correctly. However, time one one thing I won't have in the exam.

So I'd like to ask you to help me to both use the IDE to my advantage as much as possible, and to find the fastest way to code the examples I've given.

Thanks!

Aucun commentaire:

Enregistrer un commentaire