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 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 ReadingC++: Assertions
Assertions are a way of breaking out of code when there is an error or an unexpected input. Some languages throw exceptions and some treat it as a bre
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++ Puzzles/Games
[pt_view id="fa2c5f1466"]
Continue ReadingC++: Downward For Loop
Write a for loop which writes a countdown from 10 to 0. for(int i = 10; i >= 0; --i) std::cout << i << "\n"; SOURCE Con
Continue ReadingC++: Delegate Behavior to Derived Classes
INTENT Delegate behavior to derived classes without incurring the cost of run-time polymorphism. DESCRIPTION With the Curiously Recurring Tem
Continue ReadingC++: CSV to HTML Translation
Consider a simplified CSV format where all rows are separated by a newline and all columns are separated by commas. No commas are allowed as field dat
Continue Reading




