Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- char literki[1000];
- cout << "Podaj napis aby wyswietlic go w formie numerow z tablicy ASCII: " << endl << endl;
- cin.get(literki, 1000);
- for (int i = 0; i <= 999; i++)
- {
- if ((int)literki[i] == 0)
- {
- break;
- }
- else if ((int)literki[i] == 32)
- {
- cout << endl;
- }
- else
- {
- cout << endl << literki[i] << " = " << (int)literki[i];
- }
- }
- cout << endl;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment