c++ 的学习 extern“C” #ifdefine #define # endif

1.

ifndefine __main_h{
define __main_h

#ifdefine _cplusplus
extern "C"{
#endif 
sum(int a ,int b)
jianfa(int a ,int b)
chufa(int a ,int b)
#ifdefine _cplusplus
}
#endif
/*表示的意思就是如果定义了宏文件的话,那么就是执行
extern “C”
{
}*/

#endif

  重复使用了main,h头文件,太浪费

posted @ 2021-09-27 14:01  a-mhh  阅读(157)  评论(0编辑  收藏  举报