I'm trying to make a rectangle box in notepad using C++ codes. Anyone know which codes I need to use to accomplish this? I tried using ASCII and ANSI but it's not giving me the characters that I want. this is what I want to come out in notepad.
┌────────────┐
│ │
│ │
│ │
└────────────┘
I used ASCII dec values along with alt to make that here and I can also get the same results if I type it directly on notepad but when I put the same code in visual studio, it gives me a totally different character. Please help.
Seems like the forum won't let me post it properly, but it should be a rectangular box.
thats what i did exactly for the cout, but the output for notepad doesn't give me the same characters. seems like notepad uses a different code other than ASCII or ANSI
#include <iostream>
int main()
{
char a = 191; // ┐
char l = 192; // └
char j = 217; // ┘
char r = 218; // ┌
char e = 196; // -
char i = 179; // |
std::cout << r << e << e << e << e << e << e << e << e << e << e << e << e << a << std::endl ;
std::cout << i << " " << i << std::endl ;
std::cout << i << " " << i << std::endl ;
std::cout << i << " " << i << std::endl ;
std::cout << l << e << e << e << e << e << e << e << e << e << e << e << e << j << std::endl ;
}
It works on the console but not in notepad... That's as close as I can get you.