[Solved] C++ Error: ‘no match for operator


//...    
generate(apple,i);
//...

you have to specify the arguments in the signature of your function ‘generate’ like:

void generate( string apple, int it ) {

And the error:

size_t i;
//...
for(i=0; i <= pear.length(); i++) {
   //logic here?!
}

you add an element to a string using:

string.push_back( 'a' );

solved C++ Error: ‘no match for operator<...'