⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xbutton.c

📁 Object-Oriented Programming With ANSI-C这本书中的源代码!找了很久
💻 C
字号:
#include "Ic.h"#include "Xt.h"int main (int argc, char * argv []){	void * shell = new(XtApplicationShell(), & argc, argv);	void * box = new(XawBox(), shell, 0);	void * composite = new(XawBox(), box, 0);	void * lineOut = new(XLineOut(), composite, 0, "-long-");	void * button = new(XButton(), composite, 0, "a");	wire(lineOut, button);	puto(button, stdout);	/* Box will move its children */	composite = new(XawForm(), box, "form");	lineOut = new(XLineOut(), composite,"lineOut", "-long-");	button = new(XButton(), composite, "button", "b");	wire(lineOut, button);	puto(button, stdout);	/* Form won't move its children */	mainLoop(shell);        return 0; /* dummy */}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -