PDcursesに問題がありますか?適切な文字の代わりに。私は、コード・ページ437を表示して、どのシンボルが動作していたのか、どのシンボルが動作していないのかを調べるための小さなテスト・プログラムを作成しましたPDc意図した文字の代わりに疑問符を表示するキュー
奇妙なことに、PDcursesをオフにすると、問題のシンボルが正しく表示されます。
問題シンボルがあるÇéâäàåçêëèïîÄæÆôöòûùÿÖÜ¢£₧ƒ
これでPDcursesなしのソースコード:
#include "stdafx.h"
#include <curses.h>
#include <iostream>
#include <panel.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
initscr();
int c;
for (int a = 0; a < 16; a++)
{
for (int b = 1; b < 17; b++)
{
move(a, b - 1);
c = b + (a * 16) - 1;
addrawch(c);
//cout << c;
}
//cout << "\n";
}
refresh();
getch();
endwin();
return 0;
}
はイムは、Windows XPを実行している:これはPDcursesとソースコードが
#include "stdafx.h"
#include <curses.h>
#include <iostream>
#include <panel.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
//initscr();
char c;
for (int a = 0; a < 16; a++)
{
for (int b = 1; b < 17; b++)
{
move(a, b - 1);
c = b + (a * 16) - 1;
//addrawch(c);
cout << c;
}
cout << "\n";
}
//refresh();
//getch();
//endwin();
return 0;
}
ですサービスパック3およびMicrosoft Visual C++ 2010 Expressの使用
私は、文字の半分が灰色のブロックとして出てきます。私はそれをcharの代わりにintを使って修正しました。 – Diabl0658