globals.txt
来自「CxxTester是一个用于C++代码的通用测试框。它支持测试库系统、有一套方法」· 文本 代码 · 共 70 行
TXT
70 行
deletefile "out.txt"resultfile "out.txt"//// global variables for the// first two allocate tests//{ len1 = 500; len2 = 800;}//// first allocate.// address stored with the help// of indexed [0] global variable //allocate{ size = (len1) storeindex = 0}//// second allocate.// address stored with the help// of indexed [1] global variable //allocate{ size = (len2) storeindex = 1}//// last allocate.// address stored with the help// of indexed [2] global variable //allocate{ size = 1000 storeindex = 2}//// every deallocate uses the // pointer wich is stored in// the corresponding global// variable//deallocate{ pointer = (0xaddress[0]) freeindex = 0}deallocate{ pointer = (0xaddress[1]) freeindex = 1}deallocate{ pointer = (0xaddress[2]) freeindex = 2}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?