I have to add a flag option that allows a user to choose the RAM size for a program to run if they don’t want the default value of RAM. However, I’m quite the beginner and I don’t know how to get past needing the RAM size in a header file (it can’t be moved to another file by the looks of things).
All the flags from the program lay within another header file too.
Any help would be much appreciated.
I tried to define it in the other header file called config.h and then import this into the header file I am trying to dynamically allocate the value to called define.h but it is erroring badly.
user25287687 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.