#include 的应用练习

简介: #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

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