Ask coding questions

← Back to all posts
absolute_value_calculator
SeanMaynard (0)

idk why its not working. the main issue is in do_absolute_value header file. Something about Marco and something about something else

Answered by SixBeeps (4767) [earned 5 cycles]
View Answer
Comments
hotnewtop
SixBeeps (4767)

#define is for assigning aliases/nicknames to other tokens. In your header file, you're asking the preprocessor to assign a new alias with the name "do_absolute_value.h", but not telling it what it means. In other words, #define takes in two parameters, but you're only giving it one.