Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- string listKata[] = {"Hery", "Vandoro", "Iphone 6", "Iphone 6 Plus"};
- int main(){
- string keyword = "6";
- for(int i =0; i<4; i++){
- if(listKata[i].find(keyword)!=-1){
- cout << listKata[i] << ", return valuenya : " << listKata[i].find(keyword) << endl;
- }
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment