I am writing a search engine. When you search something, the results come up, with another search box. Is there any way I can do that? Here is my code so far:
In this code, the search box in the results doesn't work correctly!Code:#include <string> #include <iostream> #include <cctype> #include <algorithm> using namespace std; int main() { string str1; cout << "HIDDEN"; cin >> str1; cout << "\n"; transform(str1.begin(),str1.end(), str1.begin(), tolower); // Results if(str1 == "hidden1") { str1 = " "; cout << "hidden results"; cout << "Search: "; cin >> str1; } else if(str1 == "hidden2") cout << "hidden results 2"; else if(str1 == "hidden3") cout << "hidden results 3"; else cout << "No files found"; return 0; }



LinkBack URL
About LinkBacks


