?? prettypr.cpp
字號:
//**********************************************************
// PRETTYPR.CPP
// Coco/R C++ Taste Example.
// Adapted to C++ by Frankie Arzu <farzu@uvg.edu.gt>
// from Moessenboeck's (1990) Oberon example
//
// May 24, 1996 Version 1.06
// Oct 11, 1997 Version 1.07 (No change)
// Mar 31, 1998 Version 1.08 (No change)
//**********************************************************
#include "prettypr.hpp"
#include <stdio.h>
static int Indentation = 0;
void Append (char String[])
{
printf("%s",String);
}
void NewLine()
{
int i = 1;
printf("\n");
while (i <= Indentation) { printf(" "); i++; }
}
void IndentNextLine()
{
Indentation += 2;
NewLine();
}
void ExdentNextLine()
{
Indentation -= 2;
NewLine();
}
void Indent()
{
Indentation += 2;
}
void Exdent()
{
Indentation -= 2;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -