This task will attempt to get and set the modification time of a file. #include <boost/filesystem/operations.hpp> #include <ctime> #i
Continue ReadingC++: Even or Odd
Test whether an integer is even or odd. There is more than one way to solve this task: Use the even and odd predicates, if the language provid
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++ Math
[pt_view id="28cf82d7fe"]
Continue ReadingC++: Enumerations
Create an enumeration of constants with and without explicit values. enum fruits { apple, banana, cherry }; enum fruits { apple = 0, b
Continue ReadingDifferences Between HashMap and Hashtable?
What are the differences between a HashMap and a Hashtable in Java? Which is more efficient for non-threaded applications? dmanxiii Answer: Th
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++: 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 Reading




