Given a C ++ variable std::stringthat includes tabs, is it possible to determine the length of this line, how will it appear on the "screen"? i.e:.
std::string var = "\t\t\t";
std::cout << var.length();
std::cout << printed_length(var);
source
share