Posts

Flow of Control

Image
Control Structures defines as   " The statement which controls flow of execution of the program are the control structures. " 0r " It controls the flow of execution. " There are three types of Control Statement   1- Sequence / Linear - In this type of execution,there is no control statements. All statement in a the program are executed on after one or one by one. 2- Alternative / Branching / Selection / Jumping - In this type of execution,Some parts of the program will be execute depending upon the conditions. Eg- - if statement , - if-else statement , - if ladder - switch 3- Iterative / Looping - There are the statement which execute some statement repeatedly. The statement which are execute repeatedly is known as body of the loop. Eg- - for loop -while loop -do while loop Now , There are two types of loop... a) Entry Controlled loop -  Before entry to the loop condition is checked if it is true controls enter ...

Operators and Expressions

Image
Definition " Operators are the symbols which performs some operation on operands. " "  Expreation is any valid combination of operators, constants and variables. " Types of operators There are two types of operators      a) On the basis of type of operands                1- Unary operator               2- Binary operator               3- Ternary operator       b) On the basis of type operation performed                1- Arithmetic operator               2- Logical operator               3- Relational operator               4- Bit wise operator               5- Assignment operator...

DATA HANDLING

Image
Data - Data is like a raw facts and statistics collected together for reference or analysis and useful information is derived from data only. " Data Types are means to be identify the types of data and associate operations of handling it. " There are two types of data: 1) Fundamental Data Type 2) Derived Data Type Fundamental Data type - -   These   are not composed of other data types. - It is also called Primary Data type like- 1- Integer - the number without fractional part or decimal part is called Integer. 2- Characters - any single character enclosed in single quote. 3- Float - the number with frictional part or decimal part is called float. 4- Double 5- Void - It specifies return types of a function or non-returning function. Data Type Modifiers -        These are the keywords which are  used to modify the storing capacity of the variables. like- 1- singed 2- unsigned 3- short 4- long Note- ...

ERRORS and It's Types

Image
Error are the most important term in programing... Every beginner as well as professional programmer should face the problem of errors. There error can be defined as   " Error is not getting a genuine result due to mistaken instruction. " Or  " These are the simple mistakes which leads to not getting correct results or may be program will not execute " In Book or in Internet you can find out many types of errors but all errors are similar to or slightly different from each other... but there are only THREE TYPES OF BASIC ERRORS  i.e, 1- Syntax Error / Compile Time Error  2- Run Time Error  3- Logical Error / Semantic Error Syntax Error - - These are the errors, when grammatical rule of C++ (any language) is not followed. - There errors are shown at the time of compilation. - It is also called Compile time error. Eg- Syntax of for loop         for ( ;  ; )       ...

Getting Starting With C++

Image
OVERVIEW  ABOUT C++ ○ C++ is a programming language ○ C++ is a middle-level programming language ○ Developed by Bjarne Stroustrup starting in 1979 at Bell Labs ○ C and C++ became a widely used programming language ○ C++ fully supports object-oriented programming (OOP's) . ○ OOP's is a model of programming language or It is a Concept. FEATURE OF C++ ○ C++ is Easy to learn and Understand. ○ C++ is usually considered a "multi-paradigm" language. ○ It produces more efficient programs. ○ It can also handle low-level activities as well as high level activities ○ It can be compiled on a variety of computer platforms. ○ C++ is an object oriented programming language therefore it supports: 1. Polymorphism (one name and many forms) 2. Encapsulation (wrapping of a data & function in single unit) 3. Data Abstraction ( hiding of data and showing important features) 4. Inheritance (deriving data from one class to another) 5. Data Banding (com...