Creating my own header file and using it with this compiler

+3 votes
asked Feb 20, 2019 by Jim Wilmes (160 points)
I have a function that I want to use in my program but it is very long and needs to be repeated multiple times, so I want to make a header file where I can define it, then call to it when I need to in the main function. Please keep in mind that I am new to programming.

1 Answer

+2 votes
answered Feb 20, 2019 by Admin (4,200 points)
You can create new files under same projects.
https://www.onlinegdb.com/blog/introducing-multifile-project/
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...