+ 2

Where do we use System header file

In Cpp there's a header file named as System, but can you tell me where and why we use this header file, what is the main function of this file

29th Apr 2017, 12:33 PM
Akash Kumar Sharma
Akash Kumar Sharma - avatar
4 odpowiedzi
+ 16
Most commonly used system commands (for Windows OS) are: system("pause"); // to pause console screen system("CLS"); // to clear console screen system("color XX"); // to set console screen foreground and background color and more which you can find online. :>
29th Apr 2017, 12:44 PM
Hatsy Rei
Hatsy Rei - avatar
+ 16
The <system.h> header file is a non-standard header provided only by Borland. If you want to use system() function, use <cstdlib>
29th Apr 2017, 12:39 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
thx Hatsy, but where and why it is used??
29th Apr 2017, 12:41 PM
Akash Kumar Sharma
Akash Kumar Sharma - avatar
+ 2
to operate some system functions like Open, delete, cut, shut down etc.??
29th Apr 2017, 12:42 PM
Akash Kumar Sharma
Akash Kumar Sharma - avatar