User-submitted CPP Projects

34
1035 reads
tanyx's picture

Submitted by

tanyx
Tags:

guess
a number game.where u have to guess the secret number(which is from 0 to 4)correctly to score.this also has a "high score" and "play again" facility
Run It Now!
32
1720 reads
tanyx's picture

Submitted by

tanyx
Tags:

2ptictactoe
its a tictacto game designed upen the concept of strings..
Run It Now!
243
3549 reads

February 1, 2013

Find using while


This example uses the while loop to find a given character.

372
3402 reads

February 1, 2013

Largest value


Using for loop we are able to find the maximum value out of all elements. No inbuilt functions like sort() etc. are used in here.

66
1767 reads

February 1, 2013

Nested for loop


The placing of one loop inside the body of another loop is called nesting. When you "nest" two loops, the outer loop takes control of the number of complete repetitions of the inner loop.

278
2567 reads

February 1, 2013

Lexicographic String


This is an example of lexicographic order which is a way to sort strings using the order used in a dictionary, where strings are compared in alphabetical order, from left to right.

a1a2 ... ak

145
1724 reads

February 1, 2013

String palindrome


A palindrome is a word, phrase, number, or other sequence of units that may be read the same way in either direction.
Eg:
abab when read from reverse direction is baba, so not a palindrome.

90
4919 reads

February 1, 2013

Print a right-triangular pattern of asterisks, using nested for-loop


This example prints a right triangular asterisks pattern using for loops.

245
3471 reads

February 1, 2013

Table of a Number


This example uses a do-while loop to print a Table for a particular number..

331
4068 reads

February 1, 2013

Numbers 1-20 using While loop


The above example uses while loop to print numbers from 1 to 20.