Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <cstdio>
- using namespace std;
- int main (int argc, char **argv) {
- if (argv[1] != NULL) {
- if (strcmp(argv[1], "encode") == 0) {
- cout << "Encode mode enabled!" << endl;
- } else {
- if (strcmp(argv[1], "decode") == 0) {
- cout << "Decode mode enabled!" << endl;
- } else {
- cout << "You shall not pass! What the " << argv[1] << "????" << endl;
- }
- }
- } else {
- cout << "What do you mean by saying it..?" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement