0

Hi,

i'm making a program that outputs a lot of questions at 1 time.

.... ??
.... ??
.... ??

and i want write the answers in front of the questions and input it in the same order...

that would be like

How are you? and i write the answer here
How old are you? and here
What's your name? and here

waiting for help
thank you

P.S. i'm new here, nice forum...

4
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by Kanoisa
0
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string answer;

    cout << "This is a question? ";
    cin >> answer;
    
    system("PAUSE");
    return(0);
}

Edited by AdventGamer: n/a

0

Huh? What's that good for?

#include <iostream>
#include <string>

using namespace std;

int main()
{
    string answer;

    cout << "This is a question? ";
    cin >> answer;
    
    system("PAUSE");
    return(0);
}
0
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string answer;

    cout << "This is a question? ";
    cin >> answer;
    
    system("PAUSE");
    return(0);
}

i want output many questions and AFTER that give the answers in front of questions...

0

i want output many questions and AFTER that give the answers in front of questions...

That's what I said. :)

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.