The task is to display a series of vertical color bars across the width of the display. The color bars should either use the system palette, or the se
Continue ReadingC++: Operator overloading
What are the basic rules and idioms for operator overloading in C++? Note: The answers were given in a specific order, but since many users sort an
Continue ReadingC++: HTTP
Access and print a URL's content (the located resource) to the console. There is a separate task for HTTPS Requests. #include <winsock2.h>
Continue ReadingC++: When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast typ
Continue ReadingC++: Jensen’s Device
This task is an exercise in call by name. Jensen's Device is a computer programming technique devised by Danish computer scientist Jørn Jensen aft
Continue ReadingC++: Enumerations
Create an enumeration of constants with and without explicit values. enum fruits { apple, banana, cherry }; enum fruits { apple = 0, b
Continue ReadingC++ Math
[pt_view id="28cf82d7fe"]
Continue ReadingC++: Command-Line Arguments
Retrieve the list of command-line arguments given to the program. For programs that only print the arguments when run directly, see Scripted main.
Continue ReadingC++: What are the differences between a pointer variable and a reference variable in C++?
I know references are syntactic sugar, so code is easier to read and write. But what are the differences? Summary from answers and links bel
Continue ReadingC++: GUI Enabling/Disabling of Controls
In addition to fundamental GUI component interaction, an application should dynamically enable and disable GUI components, to give some guidance to th
Continue Reading




