TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vasanth krishna
NA
44
56k
Indexof() explain this steps clearly....
Jul 18 2013 2:08 PM
void main()
{
string name;
name = Console.ReadLine();
string s1 = Console.ReadLine();
Console.WriteLine(text1.cou(name,s1));
}
class text1
{
public static int cou(string name,string no)
{
int i = 0,c=0;
while((i=name.IndexOf(no,i))!=-1) // Explain this loop ,how it work
{
i = i + no.Length;
c++;
}
return c;
}
}
Reply
Answers (
3
)
Error while copying large files(300 MB more) using FTP
wpf gui