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++。
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++。
相关文章推荐
- 程序猿之---C语言细节16(看了绝对值,编译类型ANSI C和K&R C类型判断,c编译器类型转换bug的细节)
- c语言简单判断cpu类型
- C语言实现三角形类型判断
- C语言实现判断三边形成三角形类型并求面积
- C语言类型判断
- 判断两个int类型的整数相加,相减是否溢出的C语言代码
- C语言:判断三角形的类型
- python 判断当前系统的Python编译器类型
- C语言——判断存储类型是大端还是小端
- c语言求三角形的面积及判断三角形类型
- C语言输入三角形边长判断其类型并输出面积实例代码
- C语言之Chomsky文法类型判断
- 【C语言】判断三角形类型
- C语言小程序(一)、判断三角型类型
- C++ 判断double 类型 是否为0 编译器
- c语言判断ip地址是否合法的ip类型
- C语言多文件编译时,编译器不检测其声明的变量类型与定义时的类型是否匹配
- C语言判断三角形类型
- C语言在32位和64位机器下数字数据类型的字节数取决于编译器和平台, 主要由编译器决定。