?? max.gml
字號:
.func max
#include <stdlib.h>
#define max(a,b) (((a) > (b)) ? (a) : (b))
.funcend
.desc begin
The &func macro will evaluate to be the greater of two values.
It is implemented as follows.
.millust begin
#define max(a,b) (((a) > (b)) ? (a) : (b))
.millust end
.desc end
.return begin
The &func macro will evaluate to the larger of the two values passed.
.return end
.see begin
.seelist max min
.see end
.exmp begin
#include <stdio.h>
#include <stdlib.h>
.exmp break
void main()
{
int a;
.exmp break
/*
* The following line will set the variable "a" to 10
* since 10 is greater than 1.
*/
a = max( 1, 10 );
printf( "The value is: %d\n", a );
}
.exmp end
.class WATCOM
.system
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -