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

#ifdef __cplusplus
cout<<"c++";
#else
cout<<"c";
#endif
posted @ 2008-03-02 22:17  ahuo  阅读(808)  评论(1编辑  收藏  举报