I am having a problem making a loop in cpp(C++).please see example.?
It's just a scope problem - move "bool b;" up to the start of the function (e.g. just below "string a;"). Also you should probably initialise it to false at this point ("bool b = false;").
No comments:
Post a Comment