NetBeans 6.9: C++ Console App.: Arguments not seen in debug mode
-
25-05-2021 - |
質問
I am using Netbeans 6.9 on Ubuntu 11.04. I am developing a console op.and am building in debug mode.
The main function is declared as
int main(int argc, char **argv)
In order to add the arguments, I right click on the project and select:
properties
run
arguments
and enter my arguments of which there are several. However, when I get to the line
for (i=1; i<argc; ++i) switch (argv[i][1])
I get
argc==1
That is,it is ignoring my arguments for some reason.
所属していません StackOverflow