Showing posts with label C Plus Plus. Show all posts
Showing posts with label C Plus Plus. Show all posts

Tuesday, 28 August 2012

Variables and their Use

Simple program with variables.............


Modify Variable

How to change/modify the values of Variables???


Input Value From User

How to input  data from user ???


Increment and Decrement Operator

Post-fix  increment/decrement
Pre-fix    increment/decrement


Conditional Statements

Conditional Statements or Selection Statements.......


Nested If else

condition into a condition is called nested condition.


Conditional Operator

Simple but Explanatory...


Switch Statement

It's a multi-selection statement which gets the true condition and execute that statement which is under true condition.


For Loop...

Iteration Statements

Iteration statements are set of instructions that repeats until condition become true.

  • For loop
  • While loop
  • Do while loop

While Loop

How while loop Work......??


String Functions

String Functions ???  like gets(), puts() etc.


Arrays


Arrays are fixed size sequence containers they hold a specific number in a strict linear sequence.

  • 1D Arrays
  • 2D Arrays

2D Arrays

2D Arrays contains Rows and Columns both.


Operation with One Dimensional Array (1)

Manipulation with One dimensional arrays


Operations with One Dimensional Array (2)

Adding two arrays and putting their added value in another array.


Array Initialization (1)

Array Initialization Part 1 ( a different way to initialize)


Array Initialization (2)

Array Initialization Part 2



Functions

Function is a very important part of C++ Programming.

A Function is a group of statements that is executed when it is called by a point of a program. Following is the  syntax,

type name ( parameter list)  { statements }


Value Returning Functions


In this Tutorial You will learn how Function returns the value and these functions are call value returning functions.


Call by Value and Call by Reference Fucntion

Function

  • Call by Value
  • Call by Reference