From 9769337a9275d6a46373ba8094c2e05eb389dbd5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 26 Jul 2024 01:40:48 +0100 Subject: Binary tree of fractions Will be used in creating the cw tree. --- src/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 3613709..680a69b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,6 +19,7 @@ #include #include +#include #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define MAX(A, B) ((A) > (B) ? (A) : (B)) @@ -73,6 +74,19 @@ struct Fraction } }; +struct Node +{ + Fraction value; + Node *left, *right; + + Node(Fraction val, Node *left = nullptr, Node *right = nullptr) + : value{val}, left{left}, right{right} + { + } +}; + +std::vector nodes; + int main(void) { puts("Hello, world!"); -- cgit v1.2.3-13-gbd6f