Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string imie;
- string T[11] = {"Marcel" , "Kacper" , "Mikolaj" , "Przemek" , "Oskar" , "Grzegorz" , "Marcin" , "Michal" , "Patryk" ,"Bartek" ,"Damian"};
- int i=0;
- cin >> imie;
- T[11] = imie;
- while (T[i]!=imie)
- i++;
- if( i == 11 )
- cout<<"nie ma:" ;
- else
- cout << "Znaleziono pod indeksem "<< i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement