Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iomanip>
- #include <iostream>
- using namespace std;
- int main(int argc, char* argv[])
- {
- if (argv[1] != NULL) {
- if (argv[1][0] == '/')
- {
- switch (argv[1][1]) {
- default:
- printf("Unknown option -%c\n\n", argv[1][1]);
- break;
- case '?':
- printf("Helper. \n");
- break;
- case 'V':
- printf("Version of the exe. \n");
- break;
- case 'D':
- printf("Option D is found. \n");
- break;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement