if i got a c++ executable file like this: executable.exe and i want to add some parameters like: executable.exe +username = pino
how do i get in c++ that i filled in pino as my username?
if i got a c++ executable file like this: executable.exe and i want to add some parameters like: executable.exe +username = pino
how do i get in c++ that i filled in pino as my username?
Arguments to main. Your main is
int main(int argc, char **argv) {
...
}
All the command-line params are in argv. There are also Windows-specific APIs.