The document contains 15 code snippets in C++ that demonstrate various programming concepts like input/output, loops, conditional statements, functions etc. Each snippet is followed by sample input/output. The snippets include programs to swap two numbers without third variable, find smallest of three numbers, calculate average of student ages, display patterns like triangles and stars, check divisibility etc.