Not sure about Eclipse. It's most likely quite similar to NetBeans, though possibly with diferent categories and subcategoreies. All Projects will have a "Properties" option, with a bunch of sub-options. In NetBeans, right-click your C++ project and select "Properties". Select the "Run" category from within "Properties". Within "Run", Select "General" (it's the only option). Within "General", there is an option called "Arguments". That's where you type in the command line arguments to be passed to the main function. Save it, recompile (recompile probably isn't necessary, but can't hurt), and run again.
[EDIT]
Wait a minute, those look like compiler errors. Runtime arguments are irrelevant if it doesn't compile. Is this a NetBeans-specific thread or a generic thread asking for help on C++ code?
[/EDIT]