How do you run your program with parameters?
How do you run your program with parameters?
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com
can you elaborate a bit?
do you mean with command line arguments? ie:
if this is it then I don't think there is a way to do that; at least I've never knew how.Code:~$> prog_name -flag1 -flag2
some entropy with that sink? entropysink.com
there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka
Somewhere in the project or debug properties, there's a dialog which allows you to set the command line params to be set when you debug a program.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
IN VC++ 6.0, you go to Project->Settings and switch to the Debug tab, then type in your arguments (without the executable name) into the Program Arguments box.
For .NET I'm not sure how you'd do it, a quick search of MSDN mentioned a <Project> Property Pages dialog box.
In VC .NET 2003 if you go to the Workspace Property Pages by right clicking the project and clicking properties at the bottom. Then click in the root of the "Configuration Properties" There should be two choice "General" and "Debugging" click on debugging and you should see "Command Arguments" Just put the arguments there and you should be set.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Thanks everyone =)
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com