Basic input output in C++

Abhijeet dwivedi
2 min readFeb 3, 2021

Basic input output in C++

C++ comes with a libraries which is help us in programming input/output. In C++ sequence of bytes corresponding to input and output are commonly known as stream.

1. Input Stream:-

Direction of flow of bytes take place from input devices.

For example: keyboard to the main memory.

2. Output Stream:-

Direction of flow of bytes take place from main memory to the output device.

For example: Display.

Lets take one example

# include<iostream>

using namespace std;

int main();

{

int num1, num2;

cout<<”Enter the value of num1 and num2 <<endl; — Output function

cin>>num1>>num2>>endl; — Input function

cout<<”The sum of mum1 and num2 is = “<<num1+num2<<endl;

return 0;

}

Reserved keyword in C++

  • This is a list of keyword reserved in C++
  • Since they are uses by the language itself these keywords are not available for variable and overloading.
  • In short you can not create a variable with these names

There are some reserved keyword in C++ following are:-

— — — — — — — — — — — — — — — — — — — — — — — — —

Tags

c++ min function

c++ coding software

c++ by bjarne stroustrup pdf

c++ objective questions and answers

c++ kya hota hai in hindi

c++ 9th edition

c++ 8th edition

how much c++ do i need to know for unreal engine

c++ 7/2

c++ uses compiler or interpreter

is c++ still useful

c++ apna college

is c++ still widely used

can c++ be used for game development

where is c++ mostly used

for c++ romana

c++ 4.9.2 compiler

c++ ke fayde

when c++ was created

where do we use c++

--

--