This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // cpsc120_prompt.cc | |
| // Gist https://gist.github.com/70457715ff7fc2fcdcdaf44437624dd0 | |
| #include <iostream> | |
| #include <string> | |
| std::string PromptForString(std::string query) { | |
| std::cout << query; | |
| std::string answer; | |
| std::cin >> answer; |