Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how do you get input?

0 votes
asked Dec 14, 2017 by Isaac Roberts (120 points)
i tried several different things but they resulted in a compilation error

2 Answers

0 votes
answered Dec 14, 2017 by lichttraeger13 (140 points)
edited Dec 14, 2017 by lichttraeger13
int main (int argc, char *argv[]) {
    std::cout   << "The programm got " 
                << argc 
                << " parameters." 
                << std::endl 
                << "The parameters are:" << std::endl << std::endl;
    for(int i = 0; i < argc; i++) { 
        std::cout << (i+1) << ": " << argv[i] << std::endl; 
    } 
    return 0;    
}
commented Dec 15, 2017 by Shahzad Akhtar (100 points)
Is it Right.
0 votes
answered Dec 16, 2017 by anonymous
https://onlinegdb.com/rynHG_zGM
this is working version of your program.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...