Dec 29, 2011

Using Nested Condition

Using Nested Condition

Nested Condition is if else condition that is used under if or else condition. Its condition within condition. Like : We have to check Something Like Someone DOB First i check date then Month and Then Year Three Statement check in One Condition.
Check out One Example For Better Understand.


Using else if statement

Using else if statement

Else if statement is similar to if condition. In else-if condition you can give more than one condition like we have to give grade if students score greater than 90 got A grade, b/w 70-90 got B grade , 50-70 got C grade and so on. it require more than one condition. So we use else if condition check out example for better understand.

Dec 28, 2011

Using Conditional Statements

Using Conditional Statements

The if statement is used to check the condition. If Condition is true Then particular code execute and if condition is not true then it pass to else statement, and that code is execute within else. & else statement is not necessary every time. Check Out One Program to better Understand

Dec 20, 2011

Program : Using #define Function

Using #define Function

#define use to define a function or value or any work that particular keyword replace with that work like to display on screen i always use cout << everytime i replace it with a keyword print so next time when i require cout << then i have to use only print rest all is same like print "AZ"; //it will print AZ. Check Out Program.

Program : Using Bool Data Type

Using Bool Data Type

Bool data type can store two value only 0 or 1. o for False & 1 For True. if define Bool variable and that variable contain value more than 1 it store only 1 like i declare bool variable az = 1212313; it store az = 1 or az = true; it store az =1 & it shows zero when its False or value is Zero only.

Dec 16, 2011

Program : Using Arithmetic Operators

Program : Using Arithmetic Operators

Arithmetic Operators
There are mainly Four Arithmetic Operators in C++ i.e. are + , - , * & /. + for Addition , - for Subtraction , * for Multiply & / for Divide.

Dec 15, 2011

Program: Using setprecision() Function

Program: Using setprecision() Function


Setprecision function is used to set a number of places upto digit shown on screen like i wanna to display upto 10 digit palace so i write 10 in setprecision it set the maximum range of decimal place 10 no float value can exceed this decimal place means maximum term after the decimal is 10 & it can used using iomanip header file. 



Dec 14, 2011

Dec 13, 2011

Program : Using setfill Function

Program : Using setfill Function

Its Similar Function as setw() using iomanip header file in this we use both setw and setfill function. Its used to fill setw() left spaces with any character or symbols like last example : Hello  World using setfill('*') we can display Hello**World

Program : Use Setw() Function

Program : Use Setw() Function

The setw() function is used to set the field width of the output data. For using setw() we have to use iomanip header file. In bracket that of setw we have to write integer value according to output to be shown.

Dec 11, 2011

Dec 10, 2011

DataTypes & Variables

Main DATA TYPES in C++:-


When programming, we store the variables in our computer's memory, but the computer has to know what kind of data we want to store in them, since it is not going to occupy the same amount of memory to store a simple number than to store a single letter or a large number, and they are not going to be interpreted the same way.

Dec 9, 2011

First C++ Program

First Program in C++

Header File & Comments

Before that i want to tell You Header File in Every Program is necessary like <iostream.h>. Header file provide us some built in function & you can comment in your program anywhere by using //(double backslash) - Its Single Line Comment and for multiple lines you can use we use 
/* .......................
...............................*/
Comments are used to know about what program is, what this function do & remember to our self which part work which functions & This comments does effect your Program . This is ignore by Compiler.

Dec 8, 2011

Getting Started & C++ Tokens

 Getting Started

For Execute your C++ Code, You Need a Compiler (Download Now). Source file are Extension with .CPP & Executable File have the .EXE Extension(in Windows). Compiler convert your Source file into execution file By converting your C++ written source code into low level machine code, which made it easy to execute by OS(Operating System).

BEFORE Make your First Program You Must Know Something About Rules of C++ language.

INTRODUCTION

WHAT's C++? What its Uses?

C++ (pronounced "cee plus plus") is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. It was developed by Bjarne