lundi 17 décembre 2018

no viable conversion from returned value of type 'basic_istream

i am having this error.

no viable conversion from returned value of type 'basic_istream >' to function return type 'bool' return (getline(fin,buf))

i will really appreciate any help. I am trying to compile a c++ code here is the line of code i have issue with:

**bool getInstruction( ifstream & fin , string & buf ) { return (getline(fin,buf));

}**

Aucun commentaire:

Enregistrer un commentaire