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