User-submitted CPP Projects

119
1403 reads

February 4, 2012

more than one returning value


The first thing that should call your attention is that in the declaration of duplicate the type of each parameter was followed by an ampersand sign (&).

44
1872 reads

February 4, 2012

Functions (II)


Functions (II)
Arguments passed by value and by reference.

Until now, in all the functions we have seen, the arguments passed to the functions have been passed by value.

120
1613 reads

February 4, 2012

107
1534 reads

February 4, 2012

Scope of variables


The scope of variables declared within a function or any other inner block is only their own function or their own block and cannot be used outside of them.

107
1846 reads

February 4, 2012

Functions (I)


Functions (I)
Using functions we can structure our programs in a more modular way, accessing all the potential that structured programming can offer to us in C++.

A function is a group of statemen

107
2328 reads
stringstream1

The standard header file defines a class called stringstream that allows a string-based object to be treated as a stream.


Run It Now!
197
2926 reads
Odd or Even Modifier using a Function
this program modify inputed number from user if it is a odd or even number
Run It Now!
90
3398 reads
LuisFran's picture

Submitted by

LuisFran
listas_enlazadas
listas enlazadas en C++ compilado en GNU-GCC de LINUX utilizando la IDE Code-BLocks
Run It Now!
108
3110 reads

February 1, 2012

The continue statement


The continue statement

The continue statement causes the program to skip the rest of the loop in the current iteration as if the end of the statement block had been reached, causing it to jump to t

131
2850 reads

February 1, 2012

The break statement


The break statement

Using break we can leave a loop even if the condition for its end is not fulfilled. It can be used to end an infinite loop, or to force it to end before its natural end.