+ 5
Command line arguments in C++?
Explain with example..
3 Respuestas
+ 6
+ 6
hinanawi
👍👍👍
+ 3
command line arguments can be put as parameters into the main method and accessed within the code. when you run the program through cmd for example you can type in the number of arguments followed by the arguments themselves.
i have an example of how SL uses command line arguments here:
https://code.sololearn.com/cQ6nh08h8T4I/?ref=app