The document contains code snippets for several C++ programs including: 1) A program to calculate the product of two matrices by multiplying corresponding elements. 2) Functions to count the number of lines, words, and characters in a string. 3) A program with nested structures to store employee data including name, ID, and address. 4) A program to calculate student grades and results based on marks in 5 subjects.