I was confused in the following declaration of f. Is f variable, if yes then what type of var? Thanks.
int main()
{
ios::fmtflags f;
f = cout.flags();
}
Last edited on
Yes... f is a variable.
It is of type ios::fmtflags
, which is a class, similar to std::vector or std::string.