Including C headers inside a C++ program

后端 未结 5 897
情歌与酒
情歌与酒 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:50

    Just include them inside a extern "C" block an they should work like expected.

提交回复
热议问题