   Any idea about this
  Came across some codes which uses cout.form() and cout.scan(). Any idea what they are?   
  After a little googling, I found this.Quote:In C++ there are functions called form and scan which do the same thing as printf and scanf:   cout.form("%d%s", i, s);   // C++   cin.scan("%d%s", &i, s);   // C++;  But there are no such functions in ostream class.   ;  These are non-standard compliant compiler vendor extensions, those member functions are not portable across C++ compilers besides if you want to work with format strings with C++ iostreams then there is a more type safe and portable alternative i.e Boost.Format.   