How to get (correctly and/or readable value of) std::numeric_limits<char>::min()?
cout << std::numeric_limits<char>::min() << endl;
cout << std::numeric_limits<char>::max() << endl;
return
�
// some character that can't be copied here, it looks like a rectangle containing four numbers in it
You just need to convert it to something that when streamed to
coutwill interpret it as an integer. E.g.I deliberately use
unsignedforstd::numeric_limits<char>::max()just in casesizeof(int) == 1andcharis unsigned.