No, it isn't a C++ problem. It's just a difference between the way the tab character in interpreted in the code editor, and in the console display. Because these values are user-configurable (often set so a tab is treated as 4 or 8 spaces), then there is no guarantee of consistent behaviour.
The best advice in this case is to consistently use only spaces in the text which is to be output. In source code tabs are also used for indentation and layout, but that too may give inconsistent results when using a different editor etc, so some prefer to just use spaces there too.