C++ tutorial, C++ programs, C++ Exercises, C++ Example Programs

Monday, October 8, 2012

Constants in C Plus Plus Programs

Constant may be defined as a quantity used in a program that cannot be changed during program execution. There are two types of constants in C++ programming language. Literal Constants Symbolic Constants 1. Literal Constants A literal constant is a value that is directly...
Share:

Basic C Plus Plus Data Types

Data Type specifies what type of data will be stored in a variable and what type of operations can be performed on it. So, the data type of a variable my be defined as the set of values and operations on these values. For example, if we want to use whole numbers data in our...
Share:

Thursday, April 12, 2012

Variable Declaration in C Plus Plus

Variable declaration means to tell the C++ compiler about variable name and its data type. The syntax of variable declaration in C++ is as follows: General Syntax of Variable DeclarationDataType   List-of-Variables-separated-by-commas; Examples of variable declarationint...
Share:

Naming Rules For C++ Variables

What is a Variable Name As we have come to know in a previous post on C++ Variables, that a Variable is a named memory location to store some program data temporarily. "Named Memory Location" tells us that every variable in C++ has a variable name to refer the data stored in...
Share:

Tuesday, April 10, 2012

Explain Variables in Programming C++

Variables Variable may be defined as a named memory location to store program data temporarily during the execution of the program. So, a variable can be used to store name of a student or pay of an employee etc. in a C++ program or in any other programming language. We can...
Share:

Friday, April 6, 2012

Program Age Years To Days Convert

Today, we will discuss the logic of a simple C++ Program to input age in Years and Convert into Days. This is a simple C++ logic program. Simply we will multiply the years entered by user by 365 to convert years into  days. a) Program Requirements: Input your age in...
Share:

EasyCPPprogramming.blogspotcom