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

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


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