Advertisement
B1LLy

kody ascii

Jan 9th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. // ConsoleApplication23.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <conio.h>
  7. using namespace std;
  8. int main()
  9. {
  10.  
  11.  
  12.     unsigned char znak1, znak2;
  13.     cout << "size_znak1: " << sizeof(znak1) << endl;
  14.  
  15.     znak1 = 0;
  16.     znak2 = 128;
  17.     for (int i = 1; i <= 128; i++)
  18.     {
  19.         cout << "znak1:" << znak1 << " kod: " << int(znak1) << "  ";
  20.         cout << "znak2:" << znak2 << " kod: " << int(znak2) << endl;
  21.         ++znak1;
  22.         znak2 + 1;
  23.     }
  24.     getchar();
  25.     getchar();
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement