C_CPP/src/03_FLOW/Testat/main_mp2_FLOW_a.cpp
joethei 27f17ea96b 03_FLOW_MP: fertig
02_MENT_Testat: zurückgesetzt
03_FLOW_Testat: zurückgesetzt
2018-10-07 14:39:52 +02:00

30 lines
711 B
C++

#include <stdio.h> /* file main_mp2_FLOW_a.cpp */
#include "../../helpers/AnsiConsole.h"
AnsiConsole console;
int firstLine;
int currentTick;
Colors currentColor;
#define INITPRINT(label) {firstLine=__LINE__;console.printText(2*currentTick,0,label,Colors::BLACK);}
#define PRINT printLineNumber(__LINE__)
void printLineNumber(int lineNumber);
int main(int argc, const char *argv[]) {
console.clearScreen();
currentColor = Colors::GREEN;
std::string s;
std::cin >> s;
return 0;
}
void printLineNumber(int lineNumber) {
std::string line = std::to_string(lineNumber);
currentTick++;
console.printText(currentTick * 2 - 1, 1 + lineNumber - firstLine, line, currentColor);
}