Hi, I was working on chapter 11 of "C++ A Beginners guide, 2nd ed.", and in one of the examples (with working on the IO streams's flags), I came across this if statement:
1 2 3 4 5 6
f = cout.flags();
if (f & ios::showpos)
cout << "showpos is set for cout.\n";
else
cout << "showpos is cleared for cout.\n";
I want to know what that "&" is doing in the start of the if statement. Doesn't that mean it's trying to get the reference of something?