Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int Imie()
- {
- srand(time(0));
- const string Imie[8] = { "Szymon",
- "Maciej", "Bartek", "Mikolaj", "Rafal", "Kuba", "Janusz", "Patryk" };
- string word = Imie[rand() % 8];
- cout << word;
- cout<<" ";
- }
- int Nazwisko()
- {
- srand(time(0));
- const string Nazwisko[8] = { "Kowalski",
- "Grudzinski", "Zenker", "Kupsik", "Malecki", "Ryczek", "Solowski", "Zacios" };
- string word = Nazwisko[rand() % 8];
- cout << word;
- cout<<" ";
- }
- int Cyfra()
- {
- srand(time(0));
- const string Cyfra[8] = { "123",
- "432", "764", "666", "776", "453", "875", "923" };
- string word = Cyfra[rand() % 8];
- cout << word;
- cout<<" ";
- }
- int Email()
- {
- srand(time(0));
- const string Email[8] = { "iksde@gmail.com",
- "niewiem@gmail.com", "jaknajbardziej@gmail.com", "cotojest@gmail.com", "zslszkola@gmail.com", "jakisemail@gmail.com", "fajnyemail@gmail.com", "zslrzadzi@gmail.com" };
- string word = Email[rand() % 8];
- cout << word;
- cout<<" ";
- }
- int main()
- {
- cout<<Imie();
- cout<<Nazwisko();
- cout<<Cyfra();
- cout<<Email();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement