Question: C++ please! Write a program that displays the current working directory, then number of arguments entered on the command line, the name of the executable,
C++ please!
Write a program that displays the current working directory, then number of arguments entered on the command line, the name of the executable, and then list each argument shortest possible C++ program, modify your program so that it will display to the console the name of the executable that is running and each argument value. Example: Command Entered: > lab2q3 grades.txt CIS200 UMD 99 Output is: The current working directory is: C:\user\me\cis200\lab\lab2 There were 4 arguments entered. The executable file is: lab2q3.exe Argument 1 is: grades.txt Argument 2 is: CIS200 Argument 3 is: UMD Argument 4 is: 99
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
