Personally I would do it like this:
Code:
// survey.cpp - Christmas Survey, The program will ask, user will answer, program will save answers then print.
// Created/Revised by <Jeff Shaffer> on <11-27-06>.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
//declare variables
string name;
string ans1;
string ans2;
string ans3;
string ans4;
string ans5;
string ans6;
string ans7;
string ans8;
string ans9;
string ans10;
string ans11;
string ans12;
string ans13;
string ans14;
string ans15;
string ans16;
string ans17;
string ans18;
string ans19;
string ans20;
int ready;
//Enter input data
cout << "Enter your full name: ";
getline(cin, name);
cout << "This survey consists of 20 basic questions\n";
cout << "Ready to begin? (1 if you are, 2 if you are not)";
cin >> ready;
if ( ready == 1 ) {
//darw
cout << "\n\nHot chocolate or apple cider: ";
getline ( cin, ans1 );
cout << "\n\nTurkey or Ham: ";
getline ( cin, ans2 );
cout << "\n\nDo you get a fake or 'real cut' Xmas tree: ";
getline ( cin, ans3 );
cout << "\n\nDecorations on the outside of your house: ";
getline ( cin, ans3 );
cout << "\n\nSnowball fights or sledding: ";
getline ( cin, ans3 );
cout << "\n\nDo you like hanging around the fireplace because its warm: ";
getline ( cin, ans3 );
cout << "\n\nDo you enjoy xmas shopping: ";
getline ( cin, ans3 );
cout << "\n\nFavorite christmas song: ";
getline ( cin, ans3 );
cout << "\n\nhow do you feel about christmas movies: ";
getline ( cin, ans3 );
cout << "\n\nwhen is it to early to start listening to christmas music: ";
getline ( cin, ans3 );
cout << "\n\nStockings before or after presents: ";
getline ( cin, ans3 );
cout << "\n\ndo you like christmas carolers: ";
getline ( cin, ans3 );
cout << "\n\ngo to someone elses house or they come to yours: ";
getline ( cin, ans3 );
cout << "\n\ndo you read the christmas story the night before christmas: ";
getline ( cin, ans3 );
cout << "\n\nQuestion16: ";
getline ( cin, ans3 );
cout << "\n\nQuestion17: ";
getline ( cin, ans3 );
cout << "\n\nQuestion18: ";
getline ( cin, ans3 );
cout << "\n\nQuestion19: ";
getline ( cin, ans3 );
cout << "\n\nQuestion20: ";
getline ( cin, ans3 );
cout << "\n\nThanks for taking our survey, Your all finished";
cin.get();
}
else if ( ready == 2 ) {
cout<< "not ready";
cin.get();
}
return 0;
} // end of main function
But, I'm a noob