D
devlanguage
Hi,
The string " which is part of the argv input is removed.
// test input : ./a.out dev "query"
// actual output : query output
// expected output : "query" output
#include <iostream>
int main(int argc, char* argv[])
{
while (argc > 0)
{
std::cout << argv[argc-1] << std::endl;
--argc;
}
return 0;
}
Does anybody know what is the reason for this ?
thanks
Dev.
The string " which is part of the argv input is removed.
// test input : ./a.out dev "query"
// actual output : query output
// expected output : "query" output
#include <iostream>
int main(int argc, char* argv[])
{
while (argc > 0)
{
std::cout << argv[argc-1] << std::endl;
--argc;
}
return 0;
}
Does anybody know what is the reason for this ?
thanks
Dev.