Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h> //polskie znaki w terminalu
- using namespace std;
- string imienione(string &imie)
- {
- imie = "Witaj twoje imię to " + imie;
- cout << endl << "Podfunkcjone: ";
- return imie;
- }
- int main()
- {
- SetConsoleOutputCP(65001); //polskie znaki w terminalu
- string imie;
- cout << "Podaj swoje imię: ";
- cin >> imie;
- cout << imienione(imie);
- cout << endl << "Maino: " << imie;
- }
Advertisement
Add Comment
Please, Sign In to add comment