Tuesday, 28 January 2014

Kaun Banega Crorepati in C++

I’ve created the game in C++ coding named “Kaun Banega Crorepati”.
This game is based on very popular and thrilling quiz show.
This game is a bundle of fun, entertainment and most importantly a storehouse of knowledge.

Features of game: -

• This game consists of 12 Questions starting from 5000 to 1 Crore.
• The levels offering Rs.10, 000 and
Rs.3, 20,000 are 'safe havens'(checkpoints).
• It has three difficulty levels as easy, medium, hard.
• This game is having a time limit also to answer any question. Time limit is vary from questions to questions and difficulty level to difficulty level.
• As on the programme, you have five lifelines to help you on your way to Rs.1 Crore. These are:-
1. Fifty-Fifty
2. Phone a Friend
3. Audience poll
4. Flip the question
5. Make any lifeline alive
These are, of course, optional but each of them can only be used once, so only use them when you really need to.
Here are some screens of game :-

Coded By :- SUDHANSHU

How to download file from provided link

Note :- Some ads may open while download file. So it is always recommended to close that
ads.

1. First Click on "Free Download"
2. then write the code(code will be provided).
3. Wait 30 seconds.
4. Then Click on generate link
5. Then click on download
And Injoy....

Screenshot method to download file :-

NOW ENJOY.....

random() function in Visual Studio

random() and randomize() functions are not working in any compiler except Turbo C++.

Here we'll tell you how to use random() function in visual studio, dev c++ and other compilers.

Here is code fragment :-

num = 1+ rand() % (n+1-1);

This code will generate a random number between 1 and n. You can use any value in place of n, provided that it is an integer.

Like for example,

num = 1+ rand() % (20+1-1);

This code will generate any number randomly between 1 to 20.

This will not generate the number 0.

Note :- This code will also run of turbo C++

Here is an program using this function,

#include

#include

#include

using namespace std;

int main()

{

int num;

for (int i = 0; i < 20; ++i)

{

num = 1 + rand() % (40 + 1 - 1);

cout << num<

}

_getch();

return 0;

}



Output of above code :-



You may get different output.

And there is no need to use randomize() function. Everytime it will generate different number.

Now problem regarding with random() function is solved.

Saturday, 25 January 2014

Basic info about some compilers

Basic Info About some Compilers

Turbo c++, Dev C++ and Visual Studio are mostly used compilers. Our programs will run on these only. If you don't have them, download any of them. After some modifications in program, it will run on any of the stated. So be ready with your compilers to run our programs. Ask your queries if any, you all are welcome!


Thank You...



Friday, 24 January 2014

Welcome

WELCOME ALL OF YOU HERE



AS THIS IS THE FIRST POST 

Welcome, 
to those who have CPU in place of brains,
to those who want to know more than others,
to those who know what programming is,
to those who don't know it, and
to those find it dificult,

Welcome..

Become a fan, and get help in simple programming !!!