This commit is contained in:
Johannes Theiner 2018-06-18 19:00:00 +02:00
parent 990ea40f00
commit 126a5d45c1
4 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@
#include "RationalNumber.hpp" #include "RationalNumber.hpp"
RationalNumber addRationalNumbers(RationalNumber left, RationalNumber right){ RationalNumber addRationalNumbers(RationalNumber left, RationalNumber right){
RationalNumber result; RationalNumber result = left;
// add left and right // add left and right
return result; return result;
} }

View File

@ -13,7 +13,7 @@ typedef RationalNumber calctype;
// location 2 // location 2
RationalNumber operator+(RationalNumber a, RationalNumber b) { RationalNumber operator+(RationalNumber a, RationalNumber b) {
return a;
} }
std::string as_string(RationalNumber rationalNumber) { std::string as_string(RationalNumber rationalNumber) {

View File

@ -49,5 +49,6 @@ int main(){
printf("F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF \r\n"); printf("F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF \r\n");
printf("RS=0 \r\n"); printf("RS=0 \r\n");
printf("02 /*Return Home*/ \r\n"); printf("02 /*Return Home*/ \r\n");
getchar(); //getchar();
return 0;
} }

View File

@ -4,14 +4,14 @@ project(test_build)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
add_executable(UDEF_1 04_UDEF/main_04_UDEF_e.cpp) add_executable(UDEF_1 04_UDEF/main_04_UDEF_e.cpp)
add_executable(UDEF_2 04_UDEF/main_04_UDEF_a.cpp) #add_executable(UDEF_2 04_UDEF/main_04_UDEF_a.cpp)
add_executable(UDEF_Testat 04_UDEF/Testat/Testat.cpp) add_executable(UDEF_Testat 04_UDEF/Testat/Testat.cpp)
add_executable(OO_A 05_OO/main_mp4_OO_a_vehicles.cpp) add_executable(OO_A 05_OO/main_mp4_OO_a_vehicles.cpp)
#add_executable(OO_B 05_OO/main_mp4_OO_b.cpp) #add_executable(OO_B 05_OO/main_mp4_OO_b.cpp)
add_executable(OO_Shapes 05_OO/shapes_main.cpp) #add_executable(OO_Shapes 05_OO/shapes_main.cpp)
add_executable(SequenceDiagram 11_PUTT/05_OO_b/SequenceDiagramCreator.cpp 11_PUTT/05_OO_b/main.cpp) add_executable(SequenceDiagram 11_PUTT/05_OO_b/SequenceDiagramCreator.cpp 11_PUTT/05_OO_b/main.cpp)