Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include <conio.h>
- using namespace std;
- char b;
- int fun1(char a){
- return int(a);
- }
- char fun2(int a){
- return char(a);
- }
- int main(){
- int wybor,wybor1;
- char znak;
- cin>>wybor;
- switch (wybor){
- case 1:{cin>>znak;cout<<fun1(znak);break;}
- case 2:{cin>>wybor1;cout<<fun2(wybor1);break;}
- }
- getchar();getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment