In the present, users expect that a search engine is the first website they see when they open a web browser. Creating a web browser is complex so instead we will create a window using whatever libaries needed in C++ (SFML is the library used to do so in Prog. 2). When the main file is run, it should create a window that looks like the Google.com front page without all the added clutter (only the logo and search bar with search button). Once the user inputs their search query, you must pass that query to the header file algorithm and replace the front page with the search results page (again make it try to look like the google search results but without the Google suite of applications and accounts).
Specifics:
- Users must be able to type their text in and click the search button to "search" (pass the query to the algorithm) for a website.
- Once the algorithm is done (this is likely to take less than a second because of how fast computers are) display the resulting 10 websites on the search results page.
- If the search results arrays are empty, do not display anything except for text saying "No websites found. Please try a different query" or something similar.
- You must ensure that the search query does not contain any symbols (!@#$%^&*()-_=+). If it does contain symbols, do not pass it to the search algorithm and respond with no results found.
Note: Some implementations can be modified with agreement from Antonio for how you share data between the header and main file.
In the present, users expect that a search engine is the first website they see when they open a web browser. Creating a web browser is complex so instead we will create a window using whatever libaries needed in C++ (SFML is the library used to do so in Prog. 2). When the main file is run, it should create a window that looks like the Google.com front page without all the added clutter (only the logo and search bar with search button). Once the user inputs their search query, you must pass that query to the header file algorithm and replace the front page with the search results page (again make it try to look like the google search results but without the Google suite of applications and accounts).
Specifics:
Note: Some implementations can be modified with agreement from Antonio for how you share data between the header and main file.