1
I have the following code:
void splitstr(std::string &modulo, std::string &nmodulo, int &fk)
{
string frase = modulo;
string aux = "";
stringstream strs;
for (int i = 0; i < frase.length(); i++)
{
switch(frase[i])
{
case 'c':
aux = "";
break;
default:
aux = aux + frase[i];
break;
}
}
nmodulo = aux;
strs(nmodulo);
strs >> fk;
}
Whose mistake is:
error: no match for call to '(Std::stringstream {aka Std::basic_stringstream}) (Std::string&)'