Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. J

    C++ Why is this not working properly (.find)

    int main() { string happy = "24 1.99 42"; int loc = happy.find(" "), loc2 = happy.find(" ", loc + 1, loc + 5); cout << "LOC 1: " << loc << endl; cout << "LOC 2: " << loc2 << endl; return 0; } So I am attempting to find the two locations of the spaces My first value comes...
Back
Top Bottom