+ 5

Command line arguments in C++?

Explain with example..

4th Sep 2018, 6:40 PM
Shehroz Irfan
Shehroz Irfan - avatar
3 Respostas
4th Sep 2018, 6:40 PM
Shehroz Irfan
Shehroz Irfan - avatar
+ 6
hinanawi 👍👍👍
5th Sep 2018, 9:39 AM
Shehroz Irfan
Shehroz Irfan - avatar
+ 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
4th Sep 2018, 8:11 PM
hinanawi
hinanawi - avatar