c++ how to handling to arguments

#include <stdio.h>
#include <stdlib.h>  // exit()

int main(int argc, char* argv[]) {

if (argc == 1) {
fputs(“Error no inputs..\n”, stderr);
exit(1);
}

// print options count
printf(“input count is  %d \n\n”, argc – 1);

// print input arguments
for (int i = 1; i < argc; i++)
printf(“argv[%d] = %s\n”, i, argv[i]);

return 0;
}