Skip to main content

Posts

Showing posts from May, 2015

Some Qt and C++ tickles for UNISA COS2614

Some simple things to remember for the UNISA COS2614 exam, in no particular order:
Download Qt here: https://www.qt.io/download/
Nice simple Qt examples here:http://zetcode.com/gui/qt4/
Nice Qt videos here:https://youtu.be/6KtOzh0StTc?list=PL2D1942A4688E9D63
C++ if-else shorthand (ternary operators): condition ? value_if_true : value_if_false
Command Line Arguments: int main ( int argc, char *argv[] ) The integer, argc is the ARGument Count (hence argc). It is the number of arguments passed into the program from the command line, including the name of the program.
The array of character pointers is the listing of all the arguments. argv[0] is the name of the program, or an empty string if the name is not available. After that, every element number less than argc is a command line argument. You can use each argv element just like a string, or use argv as a two dimensional array. argv[argc] is a null pointer.
Explain two benefits of applying design patterns in OOP: Improves re-usability and extens…