asmodeus94

znLLzn

Jan 15th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. #include <conio.h>
  4. using namespace std;
  5. char b;
  6. int fun1(char a){
  7. return int(a);
  8. }
  9. char fun2(int a){
  10. return char(a);
  11. }
  12. int main(){
  13. int wybor,wybor1;
  14. char znak;
  15. cin>>wybor;
  16. switch (wybor){
  17. case 1:{cin>>znak;cout<<fun1(znak);break;}
  18. case 2:{cin>>wybor1;cout<<fun2(wybor1);break;}
  19. }
  20. getchar();getchar();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment