📄 rand_01.cc
字号:
// file: $isip/class/system/Random/rand_01.cc// version: $Id: rand_01.cc,v 1.1 2000/09/28 18:44:11 picone Exp $//// isip include files//#include "Random.h"#include <Console.h>// method: debug//// arguments:// const unichar* msg: (input) message to print//// return: a boolean value indicating status//boolean Random::debug(const unichar* msg_a) const { // declare local variables // SysString value; SysString output; // output an information message // output.debugStr(name(), msg_a, L":"); Console::put(output); Console::increaseIndention(); // display the algorithm choice // value.assign((long)algorithm_d); output.debugStr(name(), msg_a, L"algorithm_d", value); Console::put(output); // display the implementation name // value.assign((long)implementation_d); output.debugStr(name(), msg_a, L"implementation_d", value); Console::put(output); // display seed // value.assign((long)seed_d); output.debugStr(name(), msg_a, L"seed_d", value); Console::put(output); // display debug_level // value.assign((long)debug_level_d); output.debugStr(name(), msg_a, L"debug_level_d", value); Console::put(output); // display is_valid // value.assign((long)is_valid_d); output.debugStr(name(), msg_a, L"is_valid_d", value); Console::put(output); // display us_ma_d // output.debugStr(name(), msg_a, L"displaying us_ma_d:"); Console::put(output); Console::increaseIndention(); for (long i = 0; i < US_MDIM; i++) { output.debugStrPrefix(name(), msg_a); output.concat(L"us_ma_d["); value.assign(i); output.concat(value); output.concat(L"] = "); value.assign(us_ma_d[i]); output.concat(value); Console::put(output); } Console::decreaseIndention(); // display us_inext // value.assign((long)us_inext_d); output.debugStr(name(), msg_a, L"us_inext_d", value); Console::put(output); // display us_inextp // value.assign((long)us_inextp_d); output.debugStr(name(), msg_a, L"us_inextp_d", value); Console::put(output); // decrease indention // Console::decreaseIndention(); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -