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 error is:
error: no match for call to '(std :: stringstream {aka std :: basic_stringstream}) (std :: string &) '