views:

447

answers:

2

Hey Guys ! I am a novice coder.. Need your help .. I am currently working on a C Project and could not figure out how to pass command line arguments to my main function in Visual Studio 2010 Express Edition .. I want to debug and also kind of figure out how these command line arguments work.. PLEASE HELP !! Thankyou fellows

+1  A: 

Try this:

  • Right click your project in Solution Explorer and select Properties from the menu
  • Go to Configuration Properties -> Debugging
  • Set the Command Arguments in the property list.
Andrew Cooper
THANKYOU VERY MUCH !!
Fahad
+1  A: 

Under Project->Properties->Debug, you should see a box for Command line arguments (This is in C# 2010, but it should basically be the same place)

Alex Hart
Thankyou ! I picked the other guy's answer because he was the first one to answer !
Fahad
No problem, I had to create an account before the post would go through =P
Alex Hart