Thread: New, making a survey program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Registered User
    Join Date
    Nov 2006
    Location
    Mount Sterling, Ohio
    Posts
    8
    Allright sorry about that, ill be much more understandable now.
    Code:
    //Enter input data
    	cout << "Enter your full name: ";
    	getline(cin, name);
    	cout << "This survey consists of 30 basic questions";
    	cout << "Ready to begin? Yes/No";
    	cin >> ready;
    What im wondering now is i want to make it where when they Enter Yes it just continues on with the program; Now i can handle that but when they enter No their not ready i want it to just restart the program and im not sure how to do that and what kind of statement i would be using? my guess is a IF statement but thats why im asking, so appreciate if you could give shine a little light on me thank you

    also i was wondering whats the trigger to print?

    Im wanting to print at the end of the program like
    Name: name
    Answer1: ans1
    answer2: ans2

    from questions 1-30 id like to print out whats saved in the variable.
    Last edited by shaffer; 11-20-2006 at 09:23 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making a program run on startup
    By Poincare in forum C Programming
    Replies: 10
    Last Post: 06-21-2009, 12:50 PM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Making interest rate program in C
    By canadas321 in forum C Programming
    Replies: 6
    Last Post: 06-23-2005, 11:59 AM
  5. I need help with making a program which....
    By Tonyukuk in forum C# Programming
    Replies: 1
    Last Post: 04-16-2003, 10:49 PM