As Joel points out in Stack Overflow podcast #34, in C Programming Language (aka: K & R), there is mention of this property of arrays in C: a[5] =
Continue ReadingC++: Menu
Given a list containing a number of strings of which one is to be selected and a prompt string, create a function that: Print a textual menu form
Continue ReadingC++: Five Weekends
The month of October in 2010 has five Fridays, five Saturdays, and five Sundays. The task Write a program to show all months that have this sa
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++: 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++: Equilibrium Index
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++: Normal PDF
const double Pi = 3.14159265359; // Standard Normal probability density function double Normal_PDF(const double & x) // Normal PDF(x) = e
Continue ReadingC++: Long Multiplication
In this task, explicitly implement long multiplication. This is one possible approach to arbitrary-precision integer algebra. For output, display t
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 Reading




