Web Systems and E-Commerce SPRING 2007  BU4035

Home  |  Syllabus  |  Journal  | Project  | Exam Research  |  Gallery

*** On Tuesdays bring Volume 1 of Programming Easy Ways and on Thursday's bring Volume 2***

HELLO THE FIRST QUIZ IS ON FEBRUARY 22

Tuesday Feb 20th 2007

1) Review of Last Class

2) Quiz Review for Thursday. Look at each others Web Class Management (WCM) site for the questions.

3)  Quiz questions (at least 10) should be posted to your WCM site. Create quiz content based on Journal content, general knowledge, research and class discussions. Post your questions to your WCM site!!!

4) Textbook Volume 1 Looking at search engines. Coding a search engine for your website.

5)  Assignment- pick your own search.

6)    Problems and Obstacles.

7)    Gallery for Quiz

8)    Research

 

1)  Review of Last Class

2) Lecture-

We are going to work on writing the questions for Thursday's quiz.

PLEASE post your quiz questions on your Web Class Management site. (WCM)

 

 

4) Textbook Volume 1  How to open VisualStudio to write a C++ program.

     Open Visual Studio.NET by clicking START, ALL PROGRAMS --> Microsoft Visual Studio.NET 2003 --> Microsoft Visual Studio.NET

In Visual Studio Click on NEW PROJECT

In the new Project Window Click on Visual C++ Projects then on WIN 32 then on WIN32 Console Project

Name your project and click on OK

 

The application window pops up..  Click on Application Settings Then click on Empty Project.

Click Finish

 

Code for Search Engine

#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int 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

** You must create a text file in the resource files for the project.