2014-08-28 67 views
0
#include <ncurses.h> 
#include <iostream> 
using namespace std; 

int main() 
{ 
    initscr(); 

    printw("Hello world"); 
    refresh(); 
    getch(); 
    endwin(); 
    return 0; 
} 

偏好 - >環境 - >系統 - >終端:的/ usr/X11 /斌/ xterm的-eQt Creator中的ncurses錯誤打開終端:未知

的.pro:UNIX |的Win32: LIBS + = -lncurses

xterm錯誤:打開終端時出錯:未知。

請幫忙,謝謝。

回答

0

也許你需要指定一個TERM環境變量。