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

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