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 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 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++: Black Scholes Put Option Gamma
// Calculate the Black Scholes European put option Gamma double BS_Put_Option_Gamma(double S, double K, double r, double v, double T) // Parame
Continue ReadingC++: Rational Number Arithmetic
The objective of this task is to create a reasonably complete implementation of rational arithmetic in the particular language using the idioms of the
Continue ReadingC++: Template Conditional Structures
This page lists the conditional structures offered by different programming languages. Common conditional structures are if-then-else and switch. Tem
Continue ReadingC++: Address of a Variable
Get the address Note that void* is a "pure" address which doesn't carry the type information anymore. If you need the type information (e.g. to recov
Continue ReadingC++: Function Prototype
Some languages provide the facility to declare functions and subroutines through the use of function prototyping. The task is to demonstrate the metho
Continue Reading




