whupsi, broke all of it.

This commit is contained in:
Johannes Theiner 2018-08-19 18:48:08 +02:00
parent 57f7be0c3c
commit 0ece8ea785
4 changed files with 8 additions and 6 deletions

View File

@ -50,5 +50,6 @@ int main(int argc, char **argv) {
printf("\n");
local = sum(global, local);
return local;
printf("Local : %d\n", local);
return 0;
}

View File

@ -1,5 +1,5 @@
#include <stdio.h> /* file main_mp2_FLOW_a.cpp */
#include "AnsiConsole.h"
#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);}

View File

@ -1,5 +1,5 @@
#include <stdio.h> /* file main_mp2_FLOW_a.cpp */
#include "AnsiConsole.h"
#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);}
@ -8,6 +8,7 @@ void printLineNumber(int lineNumber);
void help(int i);
void help2();
void recurse2(int i, int rounds);
@ -24,7 +25,7 @@ void recurse2(int i, int rounds) {
else
return;
PRINT;recurse2(i-1);return;
PRINT;recurse2(i-1, 2);
}
void help2() {PRINT;
recurse2(3, 1);

View File

@ -10,8 +10,8 @@ add_executable(02_MENT_MP 02_MENT/MP/main_02_MENT.cpp)
add_executable(02_MENT_Testat_1 02_MENT/Testat/main_02_MENT.cpp)
add_executable(02_MENT_Testat_2 02_MENT/Testat2/main_02_MENT.cpp)
add_executable(03_FLOW_MP 03_FLOW_a/MP/main_mp2_FLOW_a.cpp)
add_executable(03_FLOW_Testat 03_FLOW_a/Testat/main_mp2_FLOW_a.cpp)
add_executable(03_FLOW_MP 03_FLOW_a/MP/main_mp2_FLOW_a.cpp helpers/AnsiConsole.cpp)
add_executable(03_FLOW_Testat 03_FLOW_a/Testat/main_mp2_FLOW_a.cpp helpers/AnsiConsole.cpp)
add_executable(04_UDEF_MP_1 04_UDEF/MP/main_04_UDEF_e.cpp)
add_executable(04_UDEF_MP_2 04_UDEF/MP/main_04_UDEF_a.cpp)