Can someone tell me how I can add an empty space in my output c++

Viewed 49

I'm trying to get an empty space as shown below but I'm not sure how to do it. I checked other pages and they said to just add a space before adding the closing quote but that didn't work in matrix.

Checking output:
In line number 10 of your output:
The output should be:
Command Line:
              ^
But your output is:
Command Line:
             ^
void listArgs(int argc, char* argv[])
{
    std::cout << "Command Line: " << std::endl;
    std::cout << "--------------------------" << std::endl;
    for (int i = 0; i < argc; i++) {
        std::cout << i + 1 << ": " << argv[i] << std::endl;
    }
    std::cout << "--------------------------\n" << std::endl;
}       
    

0 Answers
Related