Greetings all.
I have a problem with cout that doesn't print anything to the screen, or at least one of couts doesn't. I have a program in main that also uses cout, and that works fine. But then I have a separate function declared below main which gets called from main and includes cout, but it won't print anything. What could be the reasons ?
Thank you, T
#include <iostream>;
usingnamespace std;
void function();
int main ()
{
cout << "This prints to the console" << endl;
function();
return 0;
}
void function()
{
cout << "This does not print to the console" << endl;
}