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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -