Issue with g++/gcc 5.2.0 on cygwin about string and std cout
Pat. N.
patrickng9@yahoo.ca
Fri Oct 2 00:35:00 GMT 2015
Hi,
I'm running my C++ program on Cygwin, using g++ compiler version 5.2.0.
The std::string is hiding the output of std::cout.
For example, this simple program should show an output, but it's showing any:
#include <iostream>
int main()
{
std::string as = " 12345";
std::cout << "ABC" << as << std::endl;
return 0;
}
We should see "ABC 12345" but instead, we see "".
I don't know if the issue is on my side or on the g++/gcc side.
Did I do something wrong?
More information about the Gcc-help
mailing list