I've got a question about "catching output". putchar (tolower (VAR));
<- This prints what I just entered via std::getline (std::cin, VAR);
in lower case letters. I don't want to have this printed. How can I "catch" this output, to be not displayed on command prompt ?
Example: Input "TeSTIngThis" -> Output: "testingthis"
for (unsigned i = 0; i < VAR.length (); i++)
{
char TEMP = VAR[i];
VAR[i] = putchar (tolower (TEMP));
}