چاپ کد اسکی (++C)

جمعه 12 بهمن 1397
10:41
smartdevelop


#include
#include

using namespace std;

int main()
{
    cout << "********************************************************" << endl;
    cout << "             smartdevelop.ir" << endl;
    cout << "********************************************************" << endl;
    char ch;
    for (ch = -128;ch<127;ch++)
        cout << "character=" << ch
        << "\tASCII Code=" << (int)ch << "\n";
    cout << "character=" << ch << "\tASCII Code=" << (int)ch << endl;
    getch();
    return 0;
}

 

از کتابخانه های  conio.h  و  iostram  استفاده کنید .

سورس : دانلود

 

 

 

 

 

 


💬 نظرات کاربران
💬ثبت نام کاربران
💬ورود کاربران