1. Be warned! You are not allowed to use special search functions

advertisement
Homework II
Write a program that finds index of a string in another string. In other
words your program will search source string to find the location of
query string. If query string doesn’t exist in the source string then your
program should return -1. Be warned! You are not allowed to use special
search functions like string.IndexOf
Example: If user enters numbers “Anadolu University” as the source string and
“dol” as input string, then the output of the program should be
3
Deadline: 24/11/2014 – 23:59
How to send homework
1. Find your project directory.
2. Copy it to another location (create a copy of it).
3.Delete bin and obj directories in the new project directory
4. Compress your project with zip format.
5. Rename the zip file with TTTTT_NNNN_SSSSS_AdcompHw2.zip
where
T is your student (TC) id
N is your name
S is your surname
6. Send your homework as an attachment to ecimen@anadolu.edu.tr with
indicating your TC ID, name, surname and purpose of the mail (state that
you are sending your homework). Subject of the mail should be 24112014255
Good Luck.
Note:
Do not use Turkish letters in the file names of your project and zip file since
this may cause some malfunctions.
Cheating will be severely punished. All homework that is considered as
cheating will get zero mark (without regarding it is original or not).
Do not forget that if you copy a piece of code from the Internet, then
anybody else may also do the same. This situation will also be considered as
cheating too.
Download