If you add the square of the digits of a Natural number (an integer bigger than zero), you always end with either 1 or 89: 15 -> 26 -> 40 ->
Continue ReadingC++ Full Course Lesson 10: Creating Functions That Use Parameters
https://www.youtube.com/watch?v=-87KQS-rZCA&index=10&list=PLAE85DE8440AA6B83
Continue ReadingC++: Split a string in C++
What’s the most elegant way to split a string in C++? The string can be assumed to be composed of words separated by whitespace. (Note that I’m
Continue ReadingBjarne Stroustrup: Why I Created C++
https://www.youtube.com/watch?v=JBjjnqG0BP8
Continue ReadingC++: Constrained Random Points on a Circle
Generate 100 <x,y> coordinate pairs such that x and y are integers sampled from the uniform distribution with the condition that . Then display/
Continue ReadingC++: Count in Octal
The task is to produce a sequential count in octal, starting at zero, and using an increment of a one for each consecutive number. Each number should
Continue ReadingC++: Create an Object at a Given Address
In systems programing it is sometimes required to place language objects at specific memory locations, like I/O registers, hardware interrupt vectors
Continue ReadingC++: Draw a Clock
Task: draw a clock. More specific: Draw a time keeping device. It can be a stopwatch, hourglass, sundial, a mouth counting "one thousand an
Continue ReadingC++: Black Scholes Put Option Rho
// Calculate the Black Scholes European put option Rho double BS_Put_Option_Rho(double S, double K, double r, double v, double T) // Parameters
Continue ReadingC++: ABC Problem
You are given a collection of ABC blocks. Just like the ones you had when you were a kid. There are twenty blocks with two letters on each block. You
Continue Reading




