The task is to create 1 pixel wide colored vertical pinstripes with a sufficient number of pinstripes to span the entire width of the graphics display
Continue ReadingC++: List Comprehensions
A list comprehension is a special syntax in some programming languages to describe lists. It is similar to the way mathematicians describe sets, with
Continue ReadingC++: Memory Layout of a Data Structure
It is often useful to control the memory layout of fields in a data structure to match an interface control definition, or to interface with hardware.
Continue ReadingC++: Black Scholes Call Option Rho
// Calculate the Black Scholes European call Rho double BS_Call_Option_Rho(double S, double K, double r, double v, double T) // Parameters: (S
Continue ReadingC++: Filter
Select certain elements from an Array into a new Array in a generic way. To demonstrate, select all even numbers from an Array. As an option, give
Continue ReadingC++: What does the explicit keyword in C++ mean?
Someone posted in a comment to another question about the meaning of the explicit keyword in C++. So, what does it mean? Skizz Answer: In C++, th
Continue ReadingC++: Nested Loops
Show a nested loop which searches a two-dimensional array filled with random numbers uniformly distributed over . The loops iterate rows and columns o
Continue ReadingC++ Quant
[pt_view id="85ccb811a9"]
Continue ReadingC++: Cycles in family tree software
I am the developer of some family tree software (written in C++ and Qt). I had no problems until one of my customers mailed me a bug report. The probl
Continue ReadingC++: Black Scholes Call Option Gamma
// Calculate the Black Scholes European call option Gamma double BS_Call_Option_Gamma(double S, double K, double r, double v, double T) // Para
Continue Reading