- 16
- 0
- 约1.18万字
- 约 7页
- 2017-08-05 发布于天津
- 举报
俄罗斯方块C++控制台源代码.pdf
d:\cpp_code\方块\方块\方块.cpp 1
//方块.cpp:定义控制台应用程序的入口点。
//
#includestdafx.h
#includewindows.h
#includestdio.h
#includestdlib.h
#includetime.h
#includeconio.h
class Console
{
public:
Console()
{
hStdOutput=INVALID_HANDLE_VALUE;
hStdError =INVALID_HANDLE_VALUE;
}
bool Open(void)
{
hStdOutput=GetStdHandle(STD_OUTPUT_HANDLE);
hStdError =GetStdHandle(STD_ERROR_HANDLE );
return INVALID_HANDLE_VALUE!=hStdOutputINVALID_HANDLE_VALUE!=hStdError;
}
i
原创力文档

文档评论(0)