Adilol

Cobe is pedantic and annoying, so I had to use switch casing

Aug 7th, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1.  int choice = 0;
  2.  
  3.      while (choice != 2)
  4.      {
  5.  
  6.      cout << "Please select an option\n";
  7.      cout << "1:Encrypt\n";
  8.      cout << "2:About\n";
  9.      cin >> choice;
  10.      switch (choice)
  11.      {
  12.      case 1:
  13.          {
  14.          cout << "Enter a string\n";
  15.          cin.ignore(1, '\n');
  16.          }
  17.      case 2:
  18.          {
  19.          cout << "Lead development - Adil\n";
  20.             cin.ignore(1,'\n');
  21.          cout << "Algorithm design - Adil\n";
  22.             cin.ignore(1, '\n');
  23.          }
Advertisement
Add Comment
Please, Sign In to add comment