登录
首页 » Linux-Unix program » //建立窗口 win1 = newwin(15, 50, 1 ) box(win1, ACS_VLINE, ACS_HLINE) m...

//建立窗口 win1 = newwin(15, 50, 1 ) box(win1, ACS_VLINE, ACS_HLINE) m...

于 2022-12-24 发布 文件大小:522.00 B
0 249
下载积分: 2 下载次数: 1

代码说明:

//建立窗口 win1 = newwin(15, 50, 1 ) box(win1, ACS_VLINE, ACS_HLINE) mvwprintw(win1, 2,1, "WINDOW 1") mvwprintw(win1, 4,1, "Press any key switching to window 2") win2 = newwin(15, 40, 4, 20) box(win2, ACS_VLINE, ACS_HLINE) mvwprintw(win2, 2,1, "WINDOW 2") //建立子窗口 subwin = derwin(win2, 5, 25, 4, 5) box(subwin, ACS_VLINE, ACS_HLINE) mvwprintw(subwin, 2,1, "Sub Window of Window2") //刷新屏幕 refresh() wrefresh(win1) wrefresh(win2) touchwin(win1) wrefresh(win1) getch() touchwin(win2) mvwprintw(win2, 12,1, "Press any key to exit...") wrefresh(win2) //等待按键 getch() //结束 delwin(win1) delwin(subwin) delwin(win2) endwin() -//建立窗口 win1 = newwin(15, 50, 1, 1) box(win1, ACS_VLINE, ACS_HLINE) mvwprintw(win1, 2,1, "WINDOW 1") mvwprintw(win1, 4,1, "Press any key switching to window 2") win2 = newwin(15, 40, 4, 20) box(win

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • condor并行编程
    condor并行编程-Condor Parallel Programming
    2022-07-05 11:47:05下载
    积分:1
  • 自制基于Linux2.6.14的cramfs格式的根文件系统
    自制基于Linux2.6.14的cramfs格式的根文件系统-Self-made based on Linux2.6.14 the cramfs root file system format
    2022-02-22 09:24:07下载
    积分:1
  • 2022-07-08 21:53:18下载
    积分:1
  • cygwin is one of the windows platform running on the Unix simulation environment...
    cygwin是一个在windows平台上运行的unix模拟环境,是cygnus solutions公司开发的自由软件(该公司开发了很多好东西,著名的还有eCos,不过现已被Redhat收购)。它对于学习unix/linux操作环境,或者从unix到windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用gnu工具集在windows上进行嵌入式系统开发,非常有用。随着嵌入式系统开发在国内日渐流行,越来越多的开发者对cygwin产生了兴趣。本文将对其作一介绍。-cygwin is one of the windows platform running on the Unix simulation environment is cygnus solutions developed by free software (the company has developed a lot of good things, there are the famous eCos, but has been acquired by Redhat). It learning unix/linux operating environment, or from Unix to Windows applications transplant, or for some special development work, particularly the use of gnu tool set in windows on embedded systems development, very useful. As embedded systems development in the increasingly popular, more and more developers have the right cygwin interest. This article will give a brief introduction on.
    2022-03-23 22:19:24下载
    积分:1
  • Collected all linux users command, you can quickly and easily query
    搜集了linux全部的用户命令,可以方便快速查询-Collected all linux users command, you can quickly and easily query
    2022-02-07 16:34:54下载
    积分:1
  • 简单的服务器,客服端通讯,已经调试,试用于初学者
    简单的服务器,客服端通讯,已经调试,试用于初学者-simple servers, customer-communications, debug and try to beginners
    2022-07-26 12:09:10下载
    积分:1
  • 我做的闹钟程序 既包含了Qlcdnumber显示当前时间 也能在时间到的时候提醒...
    我做的闹钟程序 既包含了Qlcdnumber显示当前时间 也能在时间到的时候提醒-I do not only contain Qlcdnumber alarm clock program displays the current time can also time to time to remind the
    2022-08-07 13:45:03下载
    积分:1
  • chinaunix_linux word quiz
    chinaunix_linux一句话问答-chinaunix_linux word quiz
    2022-09-08 06:15:03下载
    积分:1
  • ov511.c是linux下的wabcam的驱动
    ov511.c是linux下的wabcam的驱动-ov511.c under the driver wabcam
    2022-12-20 03:40:03下载
    积分:1
  • This is an entry
    这是一本Linux入门级的教程,对于新手来说此教程再合适不过了。它会让你畅游在Linux的世界中。-This is an entry-level Linux tutorials, this tutorial is for novice could not have been better. It will let you enjoy in the Linux world.
    2023-06-12 03:20:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载