判断一段程序是由C 编译程序还是由C++编译程序编译

#ifdef __cplusplus
cout<<"c++";
#else
cout<<"c";
#endif


posted @ 2012-06-27 19:47  byfei  阅读(155)  评论(0编辑  收藏  举报