jtm091405
-Homework assignments
-Search engine development (page 15)
modify your code so it will run three times (for info on LOOPS go to page 59 & 76)
infinite loop page 55
read pages p287-290 for part 3
2) Compare your search engine with the existing web engines.
Document your work in your geocities account. (include a picture of your program)
use (ctrl + PrintScreen) to copy and paste it to frontpage
3) SUMMARIZE, CRITIQUE AND RESEARCH THE PAPER "WHY .........
Read chapter 20 & 10 commandments of html
test will be on (09/21/05) Wednesday 50 questions
Make sure that you have a *.txt file in "resource files" folder
(to add a text file right click on resource files)
IMPORTANT: when you run your code go to "DEBUG" menu "START WITHOUT DEBUGGING"
below is the search code (p15)
-----------------------------------------------------
#include
<iostream>#include
<fstream>#include
<string>using
namespace std;main()
{
char searchname[15], itemname [15], associateitem[14], filename[13];
cout << "ENTER THE DATA FILE NAME: ";
cin >> filename;
cout << endl << "ENTER THE SEARCH NAME: ";
cin >> searchname;
ifstream fin( filename );
while( fin >> itemname >> associateitem )
{
if( strcmp( searchname, itemname ) == 0 )
{
cout << associateitem << endl;
return 0;
} // end of if
} // end of loop
cout << "NAME NOT FOUND" << endl;
return 0;
} // end of main
--------------------------------------------------------------