From b4499a6bf0affde39503bdf588df5ce01add5e46 Mon Sep 17 00:00:00 2001 From: aortigos Date: Wed, 10 Sep 2025 01:08:11 +0200 Subject: [PATCH] Developing ex00 --- ex00/Fixed/Fixed.cpp | 25 +++++++++++++++++++++++++ ex00/Fixed/Fixed.hpp | 39 +++++++++++++++++++++++++++++++++++++++ ex00/Makefile | 25 +++++++++++++++++++++++++ ex00/main.cpp | 29 +++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+) diff --git a/ex00/Fixed/Fixed.cpp b/ex00/Fixed/Fixed.cpp index e69de29..eae29aa 100644 --- a/ex00/Fixed/Fixed.cpp +++ b/ex00/Fixed/Fixed.cpp @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* Fixed.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: aortigos + +class Fixed +{ + private: + int value; + static const int fract; + + public: + // Default constructor + + // Copy constructor + + // Copy assignment operator overload + + // Destructor + + // int getRawBits( void ) const; + + // void setRawBits( int const raw ); +}; + +#endif \ No newline at end of file diff --git a/ex00/Makefile b/ex00/Makefile index e69de29..03bd326 100644 --- a/ex00/Makefile +++ b/ex00/Makefile @@ -0,0 +1,25 @@ +NAME = fixed + +SRCS = main.cpp Fixed/Fixed.cpp +OBJS=$(SRCS:.cpp=.o) + +CC=c++ +CFLAGS=-Wall -Wextra -Werror -std=c++98 + +all: $(NAME) + +$(NAME): $(OBJS) + $(CC) $(CFLAGS) $(OBJS) -o $(NAME) + +%.o: %.cpp + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJS) + +fclean: clean + rm -f $(NAME) + +re: fclean all + +.PHONY: all clean fclean re diff --git a/ex00/main.cpp b/ex00/main.cpp index e69de29..ea51356 100644 --- a/ex00/main.cpp +++ b/ex00/main.cpp @@ -0,0 +1,29 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: aortigos