Introduction to C++ and Tool

Use of Cout and Cin in C++?

cin is an object of the input stream and is used to take input from input streams like files, console, etc. cout is an object of the output stream that is used to show output. Basically, cin is an input statement while cout is an output statement. They also use different operators.


Explanatory statements can be included in the C++ code as programme comments. Anyone reading the source code will benefit from these remarks. All programming languages provide comments in some way. Single-line and multi-line comments are supported in C++. The C++ compiler ignores all characters available inside each comment. C++ comments start with /* and end with */. A comment can also start with //, extending to the end of the line.

C++ Data Types?

A data type specifies the type of data that a variable can store such as integer, floating, character etc. There are 4 types of data types in C++ language. Types Data Types Basic Data Type int, char, float, double, etc Derived Data Type array, pointer, etc Enumeration Data Type enum User-Defined Data Type structure

Increment and Decrement Operators?

The increment and decrement operators are unary operators that add or subtract one from their operand. Imperative programming languages are typically used to implement them. Each operator in C-like languages has two variants (pre- and post-) with slightly different semantics.

String Handling in C++?

C++ provides following two types of string representations − The C-style character string. The string class type introduced with Standard C++.

If-Else using raptor tool

Conditional Operator

Continue & Break Statement

Function Passing Parameters

Cout and Cin in detail