In this task, the goal is to create the simplest possible program that is still considered "correct." int main(){} SOURCE Content is available un
Continue ReadingC++: Execute HQ9+
Implement a HQ9+ interpreter or compiler. Basically the same as the C example, although this has been C++'ified with strings and streams. void
Continue ReadingCrash Course in C++
C++ is a systems programming language that, according to its inventor Bjarne Stroustrup, was designed to be a “better C” support data abst
Continue ReadingC++: Mad Libs
Mad Libs is a phrasal template word game where one player prompts another for a list of words to substitute for blanks in a story, usually with funny
Continue ReadingC++: Matrix Multiplication
Multiply two matrices together. They can be of any dimensions, so long as the number of columns of the first matrix is equal to the number of rows of
Continue ReadingC++: Execute Brain****
RCBF is a set of Brainf*** compilers and interpreters written for Rosetta Code in a variety of languages. Below are links to each of the versions o
Continue ReadingC++: Least Common Multiple
Compute the least common multiple of two integers. Given m and n, the least common multiple is the smallest positive integer that has both m and n
Continue ReadingC++: Modular Inverse
From Wikipedia: In modular arithmetic, the modular multiplicative inverse of an integer a modulo m is an integer x such that
Continue ReadingC++: 100 Doors Problem
Problem: You have 100 doors in a row that are all initially closed. You make 100 passes by the doors. The first time through, you visit every door and
Continue ReadingC++: Empty Directory
Starting with a path to some directory, determine whether the directory is empty. An empty directory contains no files nor subdirectories. With Uni
Continue Reading




