Console input is pretty straightforward, you just need to include the input/output library. Here’s an example:
#include <iostream>
int main() {
int x;
std::cout << "Enter a number: ";
std::cin >> x;
std::cout << std::endl << "You entered: " << x;
return 0;
}
Command-line arguments would also be handy but the language only has rudimentary support for them by default. There are third-party libraries that help to fill in the gaps with them, though.
For storing the set of proper case keywords, a set may be the best container to use. In the rename loop, check the word to see if it’s in the set using the contains member function. So I think I just inadvertently wrote the entire program here. Only thing missing is the actual code 😛
Using the built-in types like this would also make it completely cross-platform 🙂
Sounds good 🙂