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...

#include <iostream>
#include <string>

using namespace std;

int main()
{
    string answer;

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

Edited 6 Years Ago by AdventGamer: n/a

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);
}
#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...

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

That's what I said. :)

This article has been dead for over six months. Start a new discussion instead.