By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,086 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,086 IT Pros & Developers. It's quick & easy.

Find the occurence of one string into another string

P: 1
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".
Mar 12 '07 #1
Share this Question
Share on Google+
2 Replies


hirak1984
100+
P: 316
so what is the problem?taking inputs from command line? or comparing the two strings?
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".
Mar 12 '07 #2

10K+
P: 13,264
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.
Mar 12 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.