您的位置:首页 > 编程语言 > C语言/C++

C语言的编译器类型的判断(34)

2006-10-10 15:29 274 查看
 /************************************************************
 Copyright (C), 1998-2006, Rx. Co., Ltd.
 FileName: mainApp.cpp
 Author: longronglin
 Version : 1.0
 Date: 2006-10-10
 Description:     
 Function List:  
    1. int main()
 History:     
      <author> <time> <version > <desc>
      longronglin    2006/10/10     1.0      modify xxx .
***********************************************************/

#include <iostream.h>
/*
 * 返回1为正确执行
 * 主函数
 *
 */

int main()
{
 #ifdef __cplusplus
 cout<<"c++";
 #else
 cout<<"c";
 #endif
 
 return (1);


Vc的输出为C++。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息