1. Basic Input/Output: Write a C++ program that asks the user for their name and then prints a greeting message including their name.
2. Variables and Data Types: Declare an integer variable for age, a double variable for height, and a string variable for city. Assign them some initial values and then print these values to the console.
3. Arithmetic Operators: Write a program that takes two integer inputs from the user and calculates their sum, difference, product, and quotient. Print the results.
4. Conditional Statements (if/else): Write a program that asks the user for a number and then determines if the number is positive, negative, or zero. Print the corresponding message.
5. Conditional Statements (switch): Write a program that asks the user for a day of the week (e.g., 1 for Monday, 2 for Tuesday, etc.) and then prints the full name of the day using a `switch` statement.
6. Loops (for loop): Write a program that prints the numbers from 1 to 10 using a `for` loop.
7. Loops (while loop): Write a program that asks the user to enter numbers until they enter 0. Calculate and print the sum of all the numbers entered (excluding 0).
8. Arrays: Declare an integer array of size 5. Ask the user to enter 5 numbers and store them in the array. Then, print all the elements of the array.
9. Functions (basic): Write a function that takes two integer arguments and returns their sum. Call this function from the `main` function with some sample values and print the result.
10. Functions (with output): Write a function that takes an integer as input and prints whether the number is even or odd. Call this function from the `main` function.
11. Strings: Write a program that asks the user for a sentence and then prints the length of the sentence.
12. Pointers (introduction): Declare an integer variable and a pointer to an integer. Assign the address of the integer variable to the pointer. Then, modify the value of the integer variable using the pointer and print the updated value.
13. Structures (struct): Define a structure named `Person` with members for name (string) and age (integer). Create a variable of type `Person`, assign it some values, and then print these values.
14. Classes (basic):Define a simple class named `Rectangle` with private members for width and height and a public member function to calculate and return the area of the rectangle. Create an object of this class, set its width and height, and then print its area.
15. Vectors (introduction): Create a `std::vector` of integers. Add the numbers 5, 10, and 15 to the vector. Then, print all the elements of the vector.