Originally Posted by
Elysia
Consider using std::string rather than char* for strings, too.
Specifically..
Code:
#include <string>
void combio(std::string const& message, vt& x)
Also consider not using system. You could use cin.get to pause, as long as the stream is empty, which is what cin.ignore does. An on-the-go method would be cin.ignore(1000, '\n'); cin.get(); but something like this works:
Code:
#include <limits>
#include <ios>
void pause()
{
if(!std::cin.good())
std::cin.clear();
std::cout << "Press the return key to continue..." << std::endl;
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.get();
}