Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how do we include a new header file added in the project?

+2 votes
asked Dec 9, 2021 by saiabhilash paruchuru (140 points)
#include "userheader.h" //getting a compiler error for this

is there any specific path to be followed

1 Answer

+1 vote
answered Dec 10, 2021 by Peter Minarik (87,340 points)

If userheader.h is your own file, you should know its path. Is that file also part of your OnlineGDB project?

Can you share your project (SHARE button right to the "RUN" button) so we can see what's going on there?

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.
...