Advertisement
fteussh

coder:3

Oct 27th, 2015
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <cstdio>
  4.  
  5. using namespace std;
  6.  
  7. int main (int argc, char **argv) {
  8.  
  9.   if (argv[1] != NULL) {
  10.     if (strcmp(argv[1], "encode") == 0) {
  11.     cout << "Encode mode enabled!" << endl;
  12.     } else {
  13.     if (strcmp(argv[1], "decode") == 0) {
  14.         cout << "Decode mode enabled!" << endl;
  15.         } else {
  16.         cout << "You shall not pass! What the " << argv[1] << "????" << endl;
  17.         }
  18.     }
  19.   } else {
  20.     cout << "What do you mean by saying it..?" << endl;
  21.   }
  22.        
  23.  
  24.   return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement