Find the occurence of one string into another string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gauravguleria
    New Member
    • Mar 2007
    • 1

    Find the occurence of one string into another string

    wht's the program which takes two strings using command line arguments and finds the occurence of second string in the first string.The program should return the starting position of first occurence if it is available otherwise should display "NOT FOUND".
  • hirak1984
    Contributor
    • Jan 2007
    • 316

    #2
    so what is the problem?taking inputs from command line? or comparing the two strings?
    Originally posted by gauravguleria
    wht's the program which takes two strings using command line arguments and finds the occurence of second string in the first string.The program should return the starting position of first occurence if it is available otherwise should display "NOT FOUND".

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by gauravguleria
      wht's the program which takes two strings using command line arguments and finds the occurence of second string in the first string.The program should return the starting position of first occurence if it is available otherwise should display "NOT FOUND".
      And what have you been trying so far? We wont give you all the code. You can see here for our posting guidelines.

      Comment

      Working...