tikimyster

main

May 8th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7.   string command, city1, city2;
  8.   while (cin >> command)
  9.   {
  10.     if(command != "insert" && "remove" && "print" && "distance" && "path")
  11.       cout << "error\n";
  12.     else
  13.       cin >> city1 >> city2;
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment