Console.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- /********************************************************************
- created: 2003/05/02
- file base: Console
- file ext: h
- author: liupeng
-
- purpose:
- *********************************************************************/
- #ifndef __INCLUDE_CONSOLE_H__
- #define __INCLUDE_CONSOLE_H__
- #if defined (_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
- #endif
- #ifndef _WINDOWS_
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #undef WIN32_LEAN_AND_MEAN
- #endif
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- #include <cstdlib>
- enum enumConsoleColor
- {
- enumWhiteonBlack,
- enumRedonBlack,
- enumGreenonBlack,
- enumYellowonBlack,
- enumBlueonBlack,
- enumMagentaonBlack,
- enumCyanonBlack,
- enumBlackonGray,
- enumBlackonWhite,
- enumRedonWhite,
- enumGreenonWhite,
- enumYellowonWhite,
- enumBlueonWhite,
- enumMagentaonWhite,
- enumCyanonWhite,
- enumWhiteonWhite,
- enumDefault
- };
- /*
- * namespace OnlineGameLib::Win32::Console
- */
- namespace OnlineGameLib {
- namespace Win32 {
- namespace Console {
- void clrscr();
- void gotoxy( int x, int y );
- void getxy( int &x, int &y );
- void setcolor( int color );
- } // End of namespace Console
- } // End of namespace Win32
- } // End of namespace OnlineGameLib
- #endif // __INCLUDE_CONSOLE_H__