Search This Blog

Wednesday, February 3, 2021

Basic input output in C++

Basic input output in C++ c++ min function c++ coding software c++ by bjarne stroustrup pdf c++ objective questions and answers c++ kya hota hai in hi

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:-
  • alignas (since C++11)
  • alignof (since C++11)
  • and
  • and_eq
  • asm
  • atomic_cancel (TM TS)
  • atomic_commit (TM TS)
  • atomic_noexcept (TM TS)
  • auto (1)
  • bitand
  • bitor
  • bool
  • break
  • case
  • catch
  • char
  • char8_t (since C++20)
  • char16_t (since C++11)
  • char32_t (since C++11)
  • class (1)
  • compl
  • concept (since C++20)
  • const
  • consteval (since C++20)
  • constexpr (since C++11)
  • constinit (since C++20)
  • const_cast
  • continue
  • co_await (since C++20)
  • co_return (since C++20)
  • co_yield (since C++20)
  • decltype (since C++11)
  • default (1)
  • delete (1)
  • do
  • double
  • dynamic_cast
  • else
  • enum
  • explicit
  • export (1) (3)
  • extern (1)
  • false
  • float
  • for
  • friend
  • goto
  • if
  • inline (1)
  • int
  • long
  • mutable (1)
  • namespace
  • new
  • noexcept (since C++11)
  • not
  • not_eq
  • nullptr (since C++11)
  • operator
  • or
  • or_eq
  • private
  • protected
  • public
  • reflexpr (reflection TS)
  • register (2)
  • reinterpret_cast
  • requires (since C++20)
  • return
  • short
  • signed
  • sizeof (1)
  • static
  • static_assert (since C++11)
  • static_cast
  • struct (1)
  • switch
  • synchronized (TM TS)
  • template
  • this
  • thread_local (since C++11)
  • throw
  • true
  • try
  • typedef
  • typeid
  • typename
  • union
  • unsigned
  • using (1)
  • virtual
  • void
  • volatile
  • wchar_t
  • while
  • xor

--------------------------------------------------

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++

Mr. abhijeet dwivedi

Developer

Hey, I'm Abhijeet

0 comments:

Post a Comment

If you have any doubt, please let me know