Introduction to C++
This blog contains notes that I am taking while learning Part 1: C++ at Coding Ninjas. Don't forget to check it out
Jan 14, 20238 min read62

Search for a command to run...

Series
Contains all the blog related to c++
This blog contains notes that I am taking while learning Part 1: C++ at Coding Ninjas. Don't forget to check it out

Introduction to Variables A variable is a storage place that has some memory allocated to it. It is used to store some form of data. Different types of variables require different amounts of memory. Variable Declaration In C++, we can declare var...

Taking Input from the Console Cin To take input from the user via the console, we use the cin statement. cin is a predefined variable that reads data from the keyboard with the extraction operator (>>). Example1: int x; cin >> x; // Get user input f...
