数学问题,用循环可以轻松搞定
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
;;pcbar 2008.09.09
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("九九乘法表 -- By Pcbar", 480, 160, -1, -1)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 460, 148, BitOR($ES_READONLY, $ES_WANTRETURN), 0)
GUISetState(@SW_SHOW)
#EndRegion ### START Koda GUI section ### Form=
GUICtrlSetData($Edit1, "========================================================================"&@CRLF, 0)
For $i = 1 To 9
$a = ''
For $j = 1 To $i
$a &= $j & 'x' & $i & '=' & $j * $i & @TAB
Next
GUICtrlSetData($Edit1, $a & @CRLF, 0)
Next
GUICtrlSetData($Edit1, "========================================================================"&@CRLF, 0)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|