ends in linux and Windows different output

I thought ends is cout << "", but not the actual

The ends defined: the actual output is '\ 0'

CRTIMP inline basic_ostream&lt;char, char_traits&lt;char&gt; &gt;&amp;
__cdecl ends(basic_ostream&lt;char, char_traits&lt;char&gt; &gt;&amp; _O)
{
     _O.put('\0');
      return (_O);
}

The same when dealing with C ++ for the ends, are inserted in the buffer zone '\ 0' and then refresh the reason for different display cases in different systems because different windows and linux handling of '\ 0', and in windows will output a space, and there will be no output at what linux

Guess you like

Origin www.cnblogs.com/spock12345/p/11527744.html