Top Categories

toString Function for C++ Classes
  • Category:
  • Sub Category:
  • string version of C++ class
  • formatting floating point data in string stream buffer
  • stringstream buffer
  • str() function
  • const toString( ) const
  • toString in C++
  • ostringstream str() function
  • writing to string buffer
  • sstream
  • toString
114 Views

toString function, which is standard in Java and C#, can be written for C++ classes and is extremely useful. The string version of the class can be written to console, graphical media (such as textbox) , to database, or to web pages. This empower class as class becomes intelligent to be able to c

Comments

You Might Be Interested In