ASCII art in C++

The escape sequences are interpreted as single special or other characters, hence the strange output. “\\” means ‘\’ for example. You can use a raw string literal: live demo