User-submitted CPP Projects

151
2542 reads

February 13, 2013

The for Loop


The for Loop is an entry-controlled loop. Firstly, initialization expression is executed, then, the test expression is evaluated.

42
1582 reads

February 13, 2013

do-while Loop


The do-while loop is similar to the while loop, except that the test condition occurs at the end of the loop.

55
1627 reads

February 13, 2013

continue Statement


The continue statement forces the next iteration of the loop to take place, skipping any code in between.

47
1679 reads

February 13, 2013

break Statements


When the break statement is encountered inside a loop, the loop is immediately terminated and program control resumes at the next statement following the loop.

40
898 reads
MonsterGame
This Project is Based on C++ game that what i have made .
MonsterGame

Run It Now!
22
1664 reads

February 13, 2013

String Find Function


This example demonstrates the string::find functionality.

24
1741 reads

February 13, 2013

String To Int


This example demonstrates the conversion of string to int.
There are many ways to do it. I don't know exactly which one is the best, but here is the fastest one:

std::string myString = "45";

29
1624 reads

February 13, 2013

String Insert Function


This example demonstrates the use of string.

116
1690 reads

February 12, 2013

Substrings & it's manipulation


We can extract one portion of a string with the method substr.

192
3705 reads

February 12, 2013

Search facilities in Strings


find method can be used to find the position of a character(s) in a string. If the string does not contain any space characters, the result of the find method will be the value string::npos.