Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Busca(int x){
- int i = 0;
- for (int i=0; i < n; i++){
- if (v[i] == x) {
- return true;
- }
- }
- return false;
- }
- if (l.Busca(5)) {
- cout << "Elemento encontrado...\n";
- }
- else{
- cout<< "Elemento nao encontrado...\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement