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.

Comments?

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

Function Pass Parameters by Value and Refrence

Function Returning Value

Inline Function

Function Overloading

Function Default Parameters

Function Local and Global Variable

Difference between Array and Simple Variable

Array Example?

Reverse and Array elements

Pass Array to Function using Pointer

Array Lab manual

What is Character Pointer?

Pointer With Structure

if-else statement

An if statement can be followed by an optional else statement, which executes when the boolean expression is false.

Syntax

The syntax of an if…else statement in C++ is −

if(boolean_expression) {
   // statement(s) will execute if the boolean expression is true
} else {
  // statement(s) will execute if the boolean expression is false
}