Port a couple easy questions to C++.