Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pismenka.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- std::string _retezec;
- int _tmain(int argc, _TCHAR* argv[])
- {
- char znak[5][5] = { { 'A', 'F', 'K', 'P', 'U' }, { 'B', 'G', 'L', 'Q', 'V' }, { 'C', 'H', 'M', 'R', 'X' }, { 'D', 'I', 'N', 'S', 'Y' }, { 'E', 'J', 'O', 'T', 'Z' } };
- int horni, spodni;
- while (true)
- {
- cout << "Horni: ";
- cin >> horni;
- cout << "Spodni: ";
- cin >> spodni;
- if (spodni == 0)
- _retezec += ' ';
- else
- {
- _retezec += znak[horni-1][spodni-1];
- }
- cout << _retezec << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement