+ 2

what is the role of........#include <windows.h>.........??? plz

30th Jun 2017, 5:42 PM
Aissaoui Djamel Eddine
Aissaoui Djamel Eddine - avatar
5 Réponses
+ 10
<windows.h> provides you with declarations for all of the functions in the Windows API. E.g. SetConsoleTextAttribute, STD_OUTPUT_HANDLE. If you are running Windows and want to simulate keystrokes and stuff.
30th Jun 2017, 5:46 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
There is a cross platform alternate available called ncurses also.
30th Jun 2017, 5:52 PM
jay
jay - avatar
+ 1
by adding #include <windows.h> to your code's #include's, you can use windows's exlusive functions to create a windows box at your liking, for instance you can create a windows box that says: Is this a box? that has two buttons: Yes and No; which you can give both different functions when pressed, there are a lot of other options you can use with it too!
30th Jun 2017, 7:16 PM
ViLXDRYAD
ViLXDRYAD - avatar