登录
首页 » 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 83
下载积分: 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 个回复

  • bank's intermediate business procedures
    银行中间业务处理程序-bank"s intermediate business procedures
    2022-01-31 09:59:43下载
    积分:1
  • lex&yacc实例
    lex&yacc实例-lexyacc
    2022-01-31 13:40:36下载
    积分:1
  • completion of the following non
    完成ls的如下功能 不带参数的ls:列出当前目录下的非隐藏(文件和目录名不以.开头)的文件和目录 ls -a:列出当前目录下的所有文件和目录 ls -l:以长列表形式列出当前目录下的非隐藏的文件和目录。每个文件或目录只要求列出如下信息:类型与权限、文件名、链接数、用户ID、组ID、字节大小、块数 ls 路径名:如果路径名代表一个存在的文件则显示该文件,否则提示出错;如果路径名字代表一个存在的目录则列出该目录中的文件 列出文件名和目录名时,要求可执行文件最后加上一个*号,目录名最后加上一个/号。 所提供的路径名可以包含“.”,“..”,“~”等特殊目录-completion of the following non-functional parameters of ls : listed in the current directory-hidden (files and directories were not. Beginning) of files and directories ls-a : listed in the current directory of all files and directories ls-l : in the long list of current directory listed under the non-hidden possession of files and directories. Each file or directory only asked to list the following information : the type and competence, file name, number of links, the user ID and group ID, byte size, a few blocks ls path : If a path representatives of the document showed documents suggest otherwise error; If representatives of a path name the presence of the directory lists the directory lists the
    2023-02-01 23:40:04下载
    积分:1
  • linux2.6输入子系统,包括详细的代码分析
    linux2.6输入子系统,包括详细的代码分析-linux2.6 input subsystem, including a detailed analysis of the code
    2022-07-09 00:40:21下载
    积分:1
  • QT教程,从基础入门。让你很快上手,从事QT开发
    QT教程,从基础入门。让你很快上手,从事QT开发-It s a good book for QT learner
    2022-12-12 04:45:03下载
    积分:1
  • The book described the basic knowledge of linux, including the installation and...
    本书讲述了linux基础知识,包括安装和使用指令。-The book described the basic knowledge of linux, including the installation and use instructions.
    2023-05-10 12:40:05下载
    积分:1
  • CoralFTP是一款用Python语言编写的工作在GTK2环境下的FTP客户端软件...
    CoralFTP是一款用Python语言编写的工作在GTK2环境下的FTP客户端软件-CoralFTP Python is a language used in the preparation of the environment GTK2 FTP client software
    2022-01-24 15:15:48下载
    积分:1
  • 系统实现类似于多文档的赢得
    linux系统下实现类似win的对多个文件的文件内容检索的功能-linux system realizes similar win to many documents document content retrieval function
    2022-02-15 21:59:40下载
    积分:1
  • The use of a side under LINUX
    -一个LINUX下的使用方便 的CD-ROM刻录软件,开放源码,编译后即可使用-- The use of a side under LINUX
    2022-05-13 14:17:36下载
    积分:1
  • 摩托罗拉A1200的Linux内核的SRC
    Moto A1200 linux kernel SRC-Moto A1200 Linux kernel SRC
    2022-02-05 11:21:56下载
    积分:1
  • 696518资源总数
  • 104441会员总数
  • 19今日下载