Advertisement
Jayss8

WCIPEG Mirrored Pairs (C++)

Jun 22nd, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string s;
  9.     cout << "Ready\n";
  10.  
  11.     while (getline(cin, s), s!= "  ")
  12.     {
  13.         if (s == "bd" || s == "db" || s == "pq" || s == "qp")
  14.         {
  15.             cout << "Mirrored pair\n";
  16.         }
  17.         else
  18.         {
  19.             cout << "Ordinary pair\n";
  20.         }
  21.     }
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement