//============================================================== // Typ character;
// przyklady wykorzystania kodow ASCII; //
// ver data temat autor // 100 2005/10/12 Pierwszy projekt J. Malinowski // 101 2007/11/08 Cleanup JM // 102 2019/12/07 Dodanie opisow JM //============================================================== #include <conio.h> #include <iostream> using namespace std; //============================================================== int main(int argc, char *argv[])
{ //--- char hexadecimal char c = '\x61'; // decimal == 97 cout << "\n" << c << "\n\n"; //--- char octal c = '\0141'; cout << "\n" << c << "\n\n"; //--- character c = 'a'; cout << "\n" << c << "\n\n"; //============================================================== //--- char hexadecimal c = '\x40'; cout << "\n" << c << "\n\n"; //--- char octal c = '\0100'; cout << "\n" << c << "\n\n"; //--- character c = '@'; cout << "\n" << c << "\n\n"; getch(); return 0; } //==============================================================