I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks
I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks
Ohh im sorry, what i mean is the 'main menu' of my program.
It goes like this. i want to put some line above and at the bottom so i search for some extended ascii codes. But the displayed char is different.
Code:main() { printf("\222\222\222 MAIN MENU\222\222\222\n"); printf(" 1. Add items\n"); printf(" 2. Search for items\n"); printf(" 3. Exit\n"); printf("\222\222\222\222\222\222\222\2222\222\n); }
If you're looking for the box characters in the extended ASCII character set shown here, then you need to look elsewhere.
Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion
This worked when your real OS was DOS.
Now that you're on windows (and a modern windows at that), things are different.
Code Page Identifiers (Windows)
The box characters will be available somewhere, but you might have to do some digging around to find them.
I don't know what you mean by "C v5.7.1". It sounds like some DOS throwback which you've managed to persuade Win8 to run. Do you have a link to where it can be downloaded / or is documented.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
O_oIt sounds like some DOS throwback which you've managed to persuade Win8 to run. Do you have a link to where it can be downloaded / or is documented.
Probably "Orwell Dev-C++", thus "MinGW 4.8.x", considering that matches the latest version number.
Anyways, the "Windows 8" terminal and at least one font (Lucida?) supports the box-drawing characters from the UNICODE standard.
Soma
“Salem Was Wrong!” -- Pedant Necromancer
“Four isn't random!” -- Gibbering Mouther