#include的应用练习

简介: 【6月更文挑战第22天】#include的应用练习。

题目:#include 的应用练习。
程序分析:无。
程序源代码:
test.h 文件代码如下:

define LAG >

define SMA <

define EQ ==

主文件代码:

include "test.h"

include

int main()
{
int i=10;
int j=20;
if(i LAG j)
printf("%d 大于 %d \n",i,j);
else if(i EQ j)
printf("%d 等于 %d \n",i,j);
else if(i SMA j)
printf("%d 小于 %d \n",i,j);
else
printf("没有值。\n");
return 0;
}
以上实例输出结果为:

10 小于 20

相关文章
|
1月前
|
编译器 C语言
#include
#include
47 0
|
8月前
makefile include 使用介绍
makefile include 使用介绍
51 0
|
1月前
|
测试技术
常用字符串函数 #include<string.h>与#include<stdio.h>
常用字符串函数 #include<string.h>与#include<stdio.h>
16 1
|
1月前
|
存储
include函数
【2月更文挑战第15天】include函数。
22 2
|
1月前
#include 的应用练习
#include 的应用练习。
28 3
|
C++
万能头文件#include<bits/stdc++.h>
#include<bits/stdc++.h>这个头文件的含义
273 1
|
编译器 C++
解决iostream.h在vc2008下不能被include
解决iostream.h在vc2008下不能被include
73 0
|
C语言 C++
C++__#include <cstdio>有什么用?
C++__#include <cstdio>有什么用?
205 0