graphics.txt

来自「CxxTester是一个用于C++代码的通用测试框。它支持测试库系统、有一套方法」· 文本 代码 · 共 111 行

TXT
111
字号
resultfile "out.txt"deletefile "out.txt"//// this testscript contains an example for// every available graphic output function. // the signature of the testcases is taken// from the function definitions in the C++// header "Graphic.h".// the testcases can be modified and the result// will appear in the graphic output window.//DrawPoint{	x = 10	y = 20}DrawLine{	xs = 30	ys = 570	xe = 130	ye = 620}DrawRect{	xs = 200	ys = 570	xe = 300	ye = 620}FillRect{	xs = 350	ys = 570	xe = 450	ye = 620}DrawArc{	xs = 80	ys = 50	xe = 330	ye = 250	angle = 16000	span  = 14000}FillArc{	xs = 80	ys = 300	xe = 330	ye = 500	angle = 16000	span  = 14000}DrawPolygon{	nr = 9	xlist[] { 400  450  530  540  520  480  430  400 390 }	ylist[] {  90   50    90   170  210   240  220 180 120 }}FillPolygon{	nr = 9	xlist[] {  400  450 530  540 520  480  430  400  390 }	ylist[] {  340  300 340  420 460  490  470  430  370 }}DrawString{	x = 500	y = 570	font = "tiny"	str  = "Hello World"}DrawString{	x = 500	y = 590	font = "medium"	str  = "Hello World"}DrawString{	x = 500	y = 615	font = "large"	str  = "Hello World"}

⌨️ 快捷键说明

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