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 ReadingBest C Questions
[pt_view id="73f49b1b41"]
Continue ReadingC++: Leap Year
Determine whether a given year is a leap year in the Gregorian calendar. #include <iostream> bool is_leap_year(int year) { return ye
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++: 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++: Enumerations
Create an enumeration of constants with and without explicit values. enum fruits { apple, banana, cherry }; enum fruits { apple = 0, b
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++: Anagrams
Two or more words can be composed of the same characters, but in a different order. Using the word list at http://www.puzzlers.org/pub/wordlists/unix
Continue ReadingC++ Math
[pt_view id="28cf82d7fe"]
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 Reading




