Open Peken-bower opened 7 months ago
#ifndef FIXED_HPP # define FIXED_HPP #include <iostream> class Fixed { private: int fixedPoint; static const int fractionalBits = 8; public: Fixed() { fixedPoint = 0; std::cout << "the Constructor was called" << std::endl; } Fixed(const Fixed& value) { *this = value; } void setRaw(int fixedPoint_) { fixedPoint = fixedPoint_; } int getRaw(void) { return fixedPoint; } }; #endif
the problem is
input_line_8:1:2: error: unterminated conditional directive #ifndef FIXED_HPP ^ Interpreter Error:
@Peken-bower See this explanation.
the problem is