//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //设置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.\n") mvaddstr(17, 1, "Press q to quit.\n") refresh() wrefresh(win)
标签: EXIT_FAILURE initcurs initscr perror
上传时间: 2013-12-20
上传用户:FreeSky
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak() noecho() keypad(stdscr, TRUE) //建立菜单项 for(i=0 i<N_ITEMS i++){ items[i] = new_item(months[i], "") } //建立菜单 mymenu = new_menu(items) //设置为5行单列的菜单 set_menu_format(mymenu, 5, 1) set_menu_mark(mymenu, "*") //获得菜单的行数很列数 scale_menu(mymenu, &mrows, &mcols) //建立窗口和子窗口 win = newwin(mrows + 2, mcols + 2, 3, 30) keypad(win, TRUE) box(win, 0, 0) subwin = derwin(win, 0, 0, 1, 1) //设置菜单的窗口 set_menu_sub(mymenu, subwin) //在子窗口上放置菜单 post_menu(mymenu) refresh() wrefresh(win)
标签: EXIT_FAILURE initcurs initscr cbreak
上传时间: 2013-11-29
上传用户:小眼睛LSL
距离分辨率 thrt0=1*pi/6 斜视角 angb=0.6*lamda/res_a 合成波束宽度 Rr=5000 目标中心到航迹垂直距离 V=100 飞机的航速 Tp=1e-6 脉冲宽度 T=10e-3 脉冲周期 B=0.5*c/res_r 脉冲频宽 Kr=B/Tp 频率调制率 fc=c/lamda 载波频率 Rx=Rr*tan(thrt0) 目标区中心横坐标 R0=Rr*sec(thrt0) 目标区中x心距离 Lc0=1.0*angb*R0 正视有效积累长度 Lc=Lc0*sec(thrt0) 斜视有效积累长度 Tc=Lc/V 相干积累时间 wx=100 场景长度
上传时间: 2017-06-22
上传用户:haohaoxuexi
java记事本,可以实现类似于win记事本的功能
上传时间: 2017-06-26
上传用户:yd19890720
用多线程实现矩阵的相乘,这个是操作系统课程的一个简单实验,有linux和win下的实现
上传时间: 2013-12-11
上传用户:ANRAN
号作品是一个简单的全屏小游戏,玩家通过击出与听到的鼓声相同的韵律来杀死怪兽。这个作品是在Dev-C++下编写而成的,使用了跨平台的游戏编程库:Allegro。由于开发平台的先进,游戏的画面比较精美,绝非TC编成的256色程序可比;不足之处是可玩性差,我还没发现任何有挑战性的内容就一不小心通关了。然而,我希望通过这个作品向自学能力较强的同学介绍Allegro库(官方网站),它带来的灵活性和无限可能是让人激动的
上传时间: 2017-07-03
上传用户:xc216
在Codevision环境下,用AVR 用TC/0设计的时钟,并用6位数码管显示
标签: Codevision 环境
上传时间: 2013-12-17
上传用户:拔丝土豆
俄罗斯方块,用c语言编的,tc环境下的,希望能帮到各位。
标签: 俄罗斯方块
上传时间: 2013-12-18
上传用户:xyipie
C语言写的五子棋代码,在TC下运行,简单易懂,AI强大,适合学习C语言和算法的初学者
上传时间: 2017-08-09
上传用户:fanboynet
You can Creat SDF Database with the help of Code and you can insert data and Retrive the data in Windows Mobile Device or you can try at Emulator
上传时间: 2017-08-12
上传用户:sxdtlqqjl