LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 737|回复: 0

求助:curses库函数好像不起作用

[复制链接]
发表于 2007-8-13 20:06:17 | 显示全部楼层 |阅读模式
《beginning linux programming》第五章的第一个例子,按书上的意思应该是在第五行输出“hello,world”,可我编译成功运行的时候 P事也没发生

附源代码:


#include <unistd.h>
#include <stdlib.h>
#include <curses.h>



int main()
{

        initscr();

        move(5,15);
        printw("%s","hello , word");
        refresh();




        endwin();
        exit(EXIT_SUCCESS);
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表