i have a program that runs like so:
a.out 23421232
now if i use a.out it will tell me check params and gives an example and closes.
I am curious if there is a way to add command line args when executing my code in vs2008?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
VS doesn’t normally produce an executable named
a.outlike most Unix compilers do. Instead, given an inputXXX.cpp, it’ll produce an executable namedXXX.exe.Adding command line arguments is done by bringing up the project properties (Alt+F7), selecting “Debugging” and then entering the argument(s) in the “Command Arguments” control. There, you’ll add JUST the argument “23421232” (or whatever).