An equilibrium index of a sequence is an index into the sequence such that the sum of elements at lower indices is equal to the sum of elements at hig
Continue ReadingC++: File Modification Time
This task will attempt to get and set the modification time of a file. #include <boost/filesystem/operations.hpp> #include <ctime> #i
Continue ReadingC++: Hello World Graphical
In this User Output task, the goal is to display the string "Goodbye, World!" on a GUI object (alert box, plain window, text area, etc.). Library:
Continue ReadingC++: Function Definition
A function is a body of code that returns a value. The value returned may depend on arguments provided to the function. Write a definition of a fun
Continue ReadingC++: Display Color Bars
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++: 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++: 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++: 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++ Math
[pt_view id="28cf82d7fe"]
Continue Reading