Click here to Skip to main content
15,881,139 members

Comments by T Bones Jones (Top 1 by date)

T Bones Jones 20-Jan-22 15:18pm View    
Maybe its my compiler, I am using Microsoft Visual C++ 2019.
Or my operating system, Windows 10

When I save a string like "This is \t my \g string" it gets treated, and prints out, as "This is <tab> my g string". So, what I am getting is either a control character, \t as tab, or the blackslash is ignored, \g as g.

Interestingly, I have printed the string out character by character. When it gets to \t the \ prints as an empty space and then next character is printed as a tab. When it gets to \g only the g is counted and printed. It is as if the \ did not exist.