A mutex (abbreviated Mutually Exclusive access) is a synchronization object, a variant of semaphore with k=1. A mutex is said to be seized by a task d
Continue ReadingC++: Middle Three Digits
The task is to: “Write a function/procedure/subroutine that is called with an integer value and returns the middle three digits of the integer
Continue ReadingC++: Image Noise
Generate a random black and white 320x240 image continuously, showing FPS (frames per second). Sample image: #include <windows.h> #
Continue ReadingC++: Here Document
A here document (or "heredoc") is a way of specifying a text block, preserving the line breaks, indentation and other whitespace within the text. D
Continue ReadingC++: Hash From Two Arrays
Using two Arrays of equal length, create a Hash object where the elements from one array (the keys) are linked to the elements of the other (the value
Continue ReadingC++: Fractran
FRACTRAN is a Turing-complete esoteric programming language invented by the mathematician John Horton Conway. A FRACTRAN program is an ordered list
Continue ReadingC++: First-Class Functions
A language has first-class functions if it can do each of the following without recursively invoking a compiler or interpreter or otherwise metaprogra
Continue ReadingC++: Construct from Rational Number
To understand this task in context please see Continued fraction arithmetic The purpose of this task is to write a function r2cf(int N1,int N2), or
Continue ReadingC++: Median
Write a program to find the median value of a vector of floating-point numbers. The program need not handle the case where the vector is empty, but mu
Continue ReadingC++: Guess the Number With Feedback (Vs Player)
The task is to write a player for the game that follows the following rules: The scorer will choose a number between set limits. The computer pla
Continue Reading




