C++ CMD input along with exe -
sorry such noobie question, how can program read data input program, how cmd options
shutdown.exe -f
how read example -f
program?
this should print out each of whitespace delimited parameters passed program.
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { for(int = 0; < argc; i++) { printf("%s\n", argv[i]); } return 0; }
Comments
Post a Comment