CPP

311
2692 reads

January 28, 2013

Variable Example 3


In C++, the names of variables, functions, labels, and various other user-defined objects are called identifiers. These identifiers can vary from one to several characters.

36
1864 reads

January 28, 2013

Boolean type variable


Here the Boolean data type is illustrated.

9
1856 reads

January 28, 2013

Static variable


A static variable is a one that has been allocated statically and whose lifetime extends across the entire run of the program.

29
1715 reads

January 28, 2013

Reference Variables


C++ introduces a new kind of variable known as the reference variable.
A reference variable provides an alternative name for a previously defined data type.

23
4452 reads

January 28, 2013

Dynamic initialization of variables


In C, a variable must be initialized using a constant expression and the C compiler would fix the initialization code at the time of compilation.

77
1803 reads

January 28, 2013

what is a variable?


A variable is the name for a place in the computer's memory where you store some data. A variable provides us with named storage that our programs can manipulate.

27
1837 reads

January 28, 2013

Char Arrays


Simple program to implement character arrays initializing their size to 10

Nickname Bert
Favorite color black
Favorite food adobo
Favorite pet cat
====================
Bert

345
5469 reads

January 28, 2013

Implementing Int, Double, Float


A very basic program that will show you how to implement variable with datatypes of integer, float and double

Sitting at what number ? 5
How many is your companion ? 2
Enter minimum fair : 3.2

25
1708 reads

January 28, 2013

Printing Variable String


This program implements simple string variable inputs.

Please enter your firstname :
Juan
Please enter username :
Bayanihan_01
Cruz

Juan 'Bayanihan_01' Cruz

Note:

346
3771 reads

January 26, 2013