【发布时间】:2011-06-02 03:54:40
【问题描述】:
嘿,所以我使用 pdCurses 库和微软操作系统工具制作了一个文本游戏。以下是我的包含,并在下面寻找其他解释:
#include <iostream>
#include <time.h> // or "ctime"
#include <stdio.h> // for
#include <cstdlib>
#include <Windows.h>
#include <conio.h>
#include<curses.h>
#include <algorithm>
#include <string>
#include <vector>
#include <sstream>
#include <ctime>
#include <myStopwatch.h> // for keeping times
#include <myMath.h> // numb_digits() and digit_val();
myStopwath/Math.h 包括:
#include <stdio.h>
#include <math.h>
#include <tchar.h>
所以我在运行 Windows 7 的计算机上测试了游戏(其中包括一个包含 .exe 和 pdcurses.dll 的文件夹),它运行良好,但是当在另一台具有 vista 或更旧版本的计算机上运行它时,我的游戏来了上来了,但由于几乎瞬间失去所有玩家的生命而立即结束……这怎么可能?
如果您想查看完整的源代码,请访问Link
谢谢!
【问题讨论】:
-
该链接只会导致另一个 stackoverflow 问题。我在那里找不到任何源代码。
-
谢谢你告诉我哈哈!修好了
标签: windows console compatibility