Including C headers inside a C++ program

后端 未结 5 895
情歌与酒
情歌与酒 2020-11-30 03:19

I have a C++ program (.cpp) inside which I wish to use some of the functions which are present inside the C header files such as stdio.h, conio.h, stdlib.h, graphics.h, devi

5条回答
  •  离开以前
    2020-11-30 03:56

    You can #include them using their original names. #include works just fine in C++.

提交回复
热议问题