Strings logic!!

Write a function substring which accepts a string and construsts its substring as per the given star and end index.Write a program which accepts two strings x & yand checks whether x contains y.
(Eg. if x=COMPUTER then if y=PUT then x contains y,,,but if y=OMER then x does not contain y.)

Pls help me \.......how to proceed!!
Topic archived. No new replies allowed.