looping a switch statement with argc as cases
Is it possible to build a loop around a switch statement using argc as cases b/c I want to have differing command line args.
e.g. [convert_dec_to_bin] [target] [print] or [convert_dec_to_bin] [target] [check_status] [shift]
so the above are the command lines args in argv: argv, argv etc. b/c I want to build a simple base-10 to base-2 conversion program and as long as user doesn't want to quit, they can re-enter new command line args. I know it works w/ using prompt, but if I didn't want that (such as cin, getline), is it possible? Somehow I think not b/c we need to re execute the exe(convert_dec_to_bin.exe)...not sure
while ( input != 'q' )
switch (argc )