0

Hi can anybody provide me with the code for c++ programme for the famous game who wants to be a millionaire.

Thanks

Votes + Comments
Check with Regis Philbin...
5
Contributors
7
Replies
9
Views
6 Years
Discussion Span
Last Post by eightyseven
Featured Replies
  • 1
    Ezzaral 2,714   6 Years Ago

    I suppose it's possible that someone could. Not sure why they would want to really, but yeah, it's possible that they could. Read More

  • Start with this: [code] #include <iostream> #include <fstream> using std::cin; using std::cout; using std::iostream; using stdLLifstream; int main() { // your program goes here } [/code] Next you will have to create a list of questions and their four possible answers, save them in a text file or just hard … Read More

1

I suppose it's possible that someone could.

Not sure why they would want to really, but yeah, it's possible that they could.

0

well,
m a newbie just want some help, if u can get me started and tell me the way out i would be really very happy. I mean where shud i start from !! i hope u can understand.

Regds

1

Start with this:

#include <iostream>
#include <fstream>

using std::cin;
using std::cout;
using std::iostream;
using stdLLifstream;

int main()
{

   // your program goes here

}

Next you will have to create a list of questions and their four possible answers, save them in a text file or just hard code them in your program.

Select one of the questions at random, display the question and four possible answers. Then ask the user to enter a,b, c or d (one of the 4 possible answers). Repeat as often as necessary so that the user can win a million dollars.

0

I think you mean:

#include <iostream>
#include <fstream>
 
using std::cin;
using std::cout;
using std::iostream;
using std::ifstream;
 
int main()
{
 
   // your program goes here
 
}
0

I think you mean:

#include <iostream>
#include <fstream>
 
using std::cin;
using std::cout;
using std::iostream;
using std::ifstream;
 
int main()
{
 
   // your program goes here
 
}

Huh??? Isn't that the same thing I posted??? Both are incorrect. std::iostream should have been std::ofstream;

Edited by Ancient Dragon: n/a

0

Make a menu first! Asking the user about various choices. eg to read a Qestion or to write or to eg delete an entry and then proceed with the development of seperate classes that corresponds to each menu item. Finally display the user choices on the console along with the points gathered.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.