?? rstd.cc
字號:
// Copyright 2000 by Robert Dick.
// All rights reserved.
#include "RStd.h"
#include <iostream>
#include <cstdlib>
/*###########################################################################*/
ostream cerrhex(cerr.rdbuf());
ostream couthex(cout.rdbuf());
namespace {
// Cause hex streams to be initialized.
int cerr_hex_init() { cerrhex << hex; return 0; }
int cout_hex_init() { couthex << hex; return 0; }
int L_cout_hex_init = cout_hex_init();
int L_cerr_hex_init = cerr_hex_init();
}
/*===========================================================================*/
void rpos(const char * file, int line) {
cerr << "File: " << file << ", Line: " << line << endl;
}
/*===========================================================================*/
void rabort(const char * file, int line, const char *message) {
rpos(file, line);
cerr << message;
abort();
}
/*===========================================================================*/
void rexit(const char * message) {
cout << message;
exit(0);
}
/*###########################################################################*/
void RStd_test() {
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -