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.

What is the add file feature for? What do the files do?

+2 votes
asked Jan 31, 2021 by Jeff The Chicken (2,920 points)
Just wondering.

1 Answer

0 votes
answered Jan 31, 2021 by LiOS (6,420 points)
Are you referencing the New File button in OnlineGDB? If so, it allows you to create new files from a range of file types.

You could create new header files that store user-defined functions for C/C++ code. Alternatively, you could create a text file which you read and write too etc.
commented Jan 31, 2021 by Jeff The Chicken (2,920 points)
so, how do you use these extra files if you can only run the main one?
commented Feb 1, 2021 by Peter Minarik (84,720 points)
You can use them the way you want.

As LiOS said, you can include additional header files in C/C++ projects.

Or you can put source code in them and the compiler will compile those codes.

Or you create a file, that is your data file (e.g. contains save information for your game) and you can read/write that file.
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.
...