Command line problem(SOLVED)

Started by
1 comment, last by yellowstar 16 years, 1 month ago
I am trying to write a console program which is using the command line. But, it's not working. This:

printf("%s\n",&argv[1]);



Shows this when the program is run:
Quote: r$=
What it's supposed to display is "Hello"...(Without the quotes)
My Website:link(Not hosted by Gamedev)
Advertisement
printf("%s\n", argv[1]); // no &
Thank's for the fast reply!

It worked!
My Website:link(Not hosted by Gamedev)

This topic is closed to new replies.

Advertisement