MaxxxxiorS

Na trójkę 30.04.2021

Apr 30th, 2021
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>                        //polskie znaki w terminalu
  3. using namespace std;
  4.  
  5. string imienione(string &imie)
  6. {
  7.     imie = "Witaj twoje imię to " + imie;
  8.  
  9.     cout << endl << "Podfunkcjone: ";
  10.  
  11.     return imie;
  12. }
  13.  
  14. int main()
  15. {
  16.     SetConsoleOutputCP(65001);              //polskie znaki w terminalu
  17.    
  18.     string imie;
  19.  
  20.     cout << "Podaj swoje imię: ";
  21.     cin >> imie;
  22.  
  23.     cout << imienione(imie);
  24.     cout << endl << "Maino: " << imie;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment