Search:

Type: Posts; User: steven456

Search: Search took 0.01 seconds.

  1. Here is what I came up with do { ...

    Here is what I came up with


    do {
    pos=str.find("fork",pos);
    count++;
    cout<<"test";
    }while (pos!=string::npos);
  2. [newbie]Find number of times a string appears in another string.

    So I have a parent string hardcoded in to the code.And I have to find number of times a string appears in the original string.I know that I can find the first occurrence of the string using...
Results 1 to 2 of 2