Professional Documents
Culture Documents
C
C++
1
C++ Introduction
• C ++ was developed by Bjarne Stroustrup at AT & T Bell lab, USA in early eighties.
• The identifier cout can be used to display individual characters, strings and even numbers.
• Stream just refers to a flow of data and the standard Output stream normally flows to the
screen display.
• The insertion operator << also called the ‘put to’ operator directs the information on its
• The identifier cin can be used to get input from the user.
• The extraction operator >> also called the ‘get from’ operator is used for input
• It extracts value from the keyboard and assigns it to the variable on its right.
• Therefore every main ( ) in C++ should end with a return (0) statement, otherwise a