User-submitted CPP Projects

255
4131 reads

February 4, 2013

Inbuilt String Functions


This example demonstrates some inbuilt string functions.

strcpy(string1, String2)
Copies string String2 into string String1.

strcat(String1, String2)

277
3220 reads

February 4, 2013

Important Mathematical functions


This example demonstrates the use of mathematical functions like exp, log, floor, ceil and abs.

152
2275 reads

February 4, 2013

Trigonometric functions


This example demonstrates the usage of trignometric functions.

289
3001 reads

February 4, 2013

Power of a number


The example demonstrates the use of pow and sqrt functions.

325
4425 reads

February 4, 2013

Strings Intro


String is actually a one-dimensional array of characters which is terminated by a null character '\0'.

21
1643 reads

February 4, 2013

Increment/Decrement operation


Increment and decrement operators are unary operators that add or subtract one from their operand, respectively.

int x;
int y;

// Increment operators
x = 1;

334
3785 reads

February 4, 2013

Mixed mode calculation


Whenever the arithmetic operation is performed on two different data types, the resultant should be stored in a variable of larger data type(i.e the one which is of more bigger size).
e.g

26
2109 reads
GP calculator
enter the third, third last and sum of any geometric progression, it will give you the no of terms in that gp and the complete gp.
Run It Now!
36
1132 reads
subhamrkl's picture

Submitted by

subhamrkl
objectswapping
swapping objects
Run It Now!
31
1308 reads
subhamrkl's picture

Submitted by

subhamrkl
cashinvoice
Cash Invoice for commodities.
Run It Now!