📄 sh_01.cc
字号:
// file: $isip/class/system/SysHeap/sh_01.cc// version: $Id: sh_01.cc,v 1.4 2000/11/22 17:20:44 picone Exp $//// isip include files//#include "SysHeap.h"#include <SysString.h>#include <Console.h>// method: debug//// arguments:// const unichar* msg: (input) message to print//// return: a boolean value indicating status//boolean SysHeap::debug(const unichar* msg_a) const { // declare strings to hold class data and values // SysString value; SysString output; SysString param; // output data only when the debug level is ALL // if (debug_level_d == Integral::ALL) { // debug the data // for (long i = 0; i < num_elements_d; i++) { param.assign(L"data_d["); value.assign(i); param.concat(value); param.concat(L"]"); value.assign(data_d[i]); output.debugStr(name(), msg_a, (unichar*)param, value); Console::put(output); } } // display the number of elements // value.assign(num_elements_d); output.debugStr(name(), msg_a, L"num_elements_d", value); Console::put(output); // display the capacity // value.assign(capacity_d); output.debugStr(name(), msg_a, L"capacity_d", value); Console::put(output); // display the capacity // value.assign(grow_factor_d); output.debugStr(name(), msg_a, L"grow_factor_d", value); Console::put(output); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -