Sign in

C++ comes with libraries that help in performing basic input/output operations. In c++, a sequence of bytes is corresponding to input/output is called a stream.

Rows of data from input devices(keyboard, mouse) to main memory are called input streams.

Rows of data from main memory to output devices(monitor, printer) are…


Last time we discussed variables in C++. If you haven’t read about it read it here: https://niftynitin.medium.com/variables-in-c-5e71fe59d765

Source : Unsplash

A data type is a restriction on the variable for the type of data it can store.

All data types in C++ is divided into mainly three types:

  1. Primitive data types: These data…

A variable is simply a storage unit for our data. Just like in real life we have different containers to store different objects similarly, we require different amounts of memory to store different types of data.

Variable declaration

#include <iostream>int main() {
//variable declaration
int…


If you haven’t set up a C++ compiler yet check this previous post.
https://niftynitin.medium.com/set-up-vs-code-for-c-1c961b12fd89

In our previous post, we wrote the following code

#include <iostream>
using namespace std;

int main()
{

// prints hello world
cout<<”Hello World!”<<endl;
return 0;
}

Let us now understand what each part of the program…


This is the first post of my C++ series which will cover all the topics you will need as a beginner and will guide you to an advanced level and get you prepared for the journey of Competitive programming.

Photo by Danial Igdery on Unsplash

Downloading GCC compiler

For Windows
https://sourceforge.net/projects/mingw/
1. Run the installer the following window opens.

Nitin

I am a CS graduate and an ML enthusiast. My purpose here is to guide beginners in their programming and Machine learning journey.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store