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

📄 crt.d

📁 Object-Oriented Programming With ANSI-C这本书中的源代码!找了很久
💻 D
字号:
// new(Crt())//	wraps a curses window, gate(crt, 0) produces events// new(CLineOut(), y, x, len)//	LineOut, located at y, x, with line length len// new(CButton(), "text", y, x)//	Button, located at y, x, sized for "text"% IcClass  Crt: Ic {	void * window;		// curses WINDOW	int rows;		// size	int cols;%	void makeWindow (_self, int rows, int cols, int y, int x);	void addStr(_self, int y, int x, const char * s);	void crtBox(_self);%}%prot#define	rows(c)	(((const struct Crt *) c) -> rows)#define	cols(c)	(((const struct Crt *) c) -> cols)% IcClass  CLineOut: Crt {%}% IcClass  CButton: Crt {	void * button;	int y;	int x;%}

⌨️ 快捷键说明

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