Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string s, t;
- cin >> s >> t;
- if (s == "computer" && t == "computer")
- {
- cout << "Crossover";
- }
- else if (s == "computer" && t == "router")
- {
- cout << "Crossover";
- }
- else if (s == "router" && t == "computer")
- {
- cout << "Crossover";
- }
- else if (s == "router" && t == "router")
- {
- cout << "Crossover";
- }
- else
- {
- cout << "Straight through";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement