Thread: String within a string

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    28

    String within a string

    --------------------------------------------------------------------------------

    hello
    i have a problem
    problem is this:

    find out whether the first string is hiding somewhere within the second one.
    your solution should be case- insensitive.

    Input:

    total number of string pairs to compare.
    String 1 , String 2

    Output:

    whether the first string is hiding within the second string of each string pair.

    Sample Input:
    2
    Hello world, H341e2234167678lo231 WiuOnkvgRLllpodoij
    How are you, Hoas are....laoisqyou

    Sample Output:
    Yes
    No

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    There's a policy against asking for homework help.
    At least show us the code you have so far.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    28
    thanks

    but i am not a student.

    i am making a programming competition so thats why i thread it here.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    i am making a programming competition so thats why i thread it here.
    Ok. Looks like you shouldn't be hosting a competition here b/c none of use want to compete, and if you are competing in one and you are asking us to help you win it looks as though you are going to lose.

    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compare structures
    By lazyme in forum C++ Programming
    Replies: 15
    Last Post: 05-28-2009, 02:40 AM
  2. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  3. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  4. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM