Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (lgbasallote):

what is the function of #include exactly? i use it for system("cls") in programming in dev c ++ but what is the function of that header exactly?

OpenStudy (anonymous):

It allows you to use some functions that are an extension of the built-in functions. These include some type conversion, random number generation, memory management, talking with the environment (system("cls") fits here), some search/sort methods, some integer math like absolute value, and some multibyte functions.

OpenStudy (lgbasallote):

so let me get this straight...system("cls") wont work without that specific header?

OpenStudy (anonymous):

Exactly. And the best way to make sure that that's true is to take it out and run your program.

OpenStudy (lgbasallote):

well is there a clean screen function that does not require a certain header?

OpenStudy (lgbasallote):

and yup i've tried it...however i do remember one time when i used system("cls") without that header...wonder how that happened

OpenStudy (anonymous):

Not that I know of, though I'm not exactly a C++ guru. Is there a reason why you won't want to include it? Including a bunch of libraries that extend functionality is pretty par for the course...it's what makes languages like, say, Python extremely powerful. If you don't know how to do something, there's a good chance someone else has already done it and you can just import their functions.

OpenStudy (lgbasallote):

well i tend to forget things haha..and for less codes to remember..idk

OpenStudy (lgbasallote):

anyway...thank you very much :D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!