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 I know which header file to use in C++ for a certain program ?

0 votes
asked Apr 22, 2019 by Ermir (120 points)

2 Answers

0 votes
answered Apr 24, 2019 by Wei Wei
There are mainly 2 types of Header files (also called Library files):

iostream.h :- the input(cin) and output(cout) commands are explained in this header file. So it cannot be removed.

conio.h :- the clear screen function[ clrscr()] is included in this header file. So it can be removed as per your requirement.

this is the best of my knowledge about C++. I am still a beginner.
0 votes
answered Apr 29, 2019 by Get Beaned Knee-gear
Use the string header file and just delete contents and start coding in 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.
...