home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Games for Windows / Over1000GamesForWindows.iso / CARDS / 7andHalf / Console.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-01-18  |  744 b   |  40 lines

  1. // Console.h: interface for the Console class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_CONSOLE_H__08398910_4C1F_4791_9F37_76F6D8301CFB__INCLUDED_)
  6. #define AFX_CONSOLE_H__08398910_4C1F_4791_9F37_76F6D8301CFB__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. //#define FILE
  13.  
  14. class Console  
  15. {
  16. public:
  17.     Console();
  18.     virtual ~Console();
  19.  
  20.  
  21.     void                    Out(char *format, ...);
  22.  
  23. private:
  24.     long                    mHwnd;
  25. };
  26.  
  27.  
  28. #include <sstream>
  29. template <class Num>
  30.   std::string to_string( Num n )
  31.   {
  32.     std::ostringstream oss;
  33.     oss << n;
  34.     return oss.str();
  35.   }
  36.  
  37.  
  38.  
  39. #endif // !defined(AFX_CONSOLE_H__08398910_4C1F_4791_9F37_76F6D8301CFB__INCLUDED_)
  40.