Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 3 Forum
Date: Thu Sep 27 2001 11:52 am
Author: White, David <white3@andrew.cmu.edu>
Subject: Re: search function

Storing another coordinate would allow the search request to find the next word on the given line after the horizontal coordinate...


For example with the line:

"Hello Joe, Hello Fred."

I could search like this:

search("Hello", 1, 0) (which would search for the string Hello starting at line 1, column 0)

If I wanted the next hello I would search for
search("Hello", 1, 5), which would search for the string Hello starting at line 1, column 5 and should return the "next" Hello. I'm pretty sure this is how the "find next" option works in a program like MS Word... (it stores line and column numbers...)

Post response

Go to the previous messageGo to the following message
Current Thread Detail:
search function      Durham, Patrick K.      Wed Sep 26 2001 2:22 pm       
Re: search function      White, David      Wed Sep 26 2001 3:31 pm       
Re: search function      Chen, Richard      Thu Sep 27 2001 12:15 am       
Re: search function      Cipriani, Jason A.      Thu Sep 27 2001 11:24 am       
Re: search function      White, David      Thu Sep 27 2001 11:49 am       
Re: search function      White, David      Thu Sep 27 2001 11:52 am       
Re: search function      Danish, Matt R.      Fri Sep 28 2001 11:44 am       
Re: search function      Cipriani, Jason A.      Fri Sep 28 2001 5:32 pm       
Re: search function      Yuen, John      Thu Sep 27 2001 12:06 pm       

Back to previous screen