֪ Ŀ Lib Ƶ iProcess γ ֤ ѯ Modeler   Code  
Ա   
Ҫ
 
 

CԽ̳
CVSװ
CԵһ
CԳִ
Cprintf()scanf()
C
CԹؼ
C
CԿ
Cif-else
Cswitch
Cdo-whileѭ
Cwhileѭ
Cforѭ
Cbreak
Ccontinue
Cgoto
Cֵͨú
CԵݹ
CԴ洢
C
C
CԶά
CԽ鴫ݸ
Cָָ
Cgets()puts()
Cstrlen()
Cstrcpy()
Cstrcat()
Cstrcmp()
Cstrrev()
Cstrlwr()
Cstrupr()
CԽṹ
CԽṹ
CԽṹǶ
C
ļ
Cfprintf()fscanf()
Cfputc()fgetc()
Cfputs()fgets()
Cfseek()
Crewind()
Cftell()
Ԥ
CԤָ
C#includeָ
C#defineָ
C#undefָ
C#ifdefָ
C#ifndefָ
C#ifָ
C#errorָ
C#pragmaָ
 
 

C#pragmaָ
84
1  
 

#errorԤָָʾҵ#errorָ󣬲һı̡

#errorʾ

һ򵥵ʹ#errorԤָһԴļerror-example.cʾ -

#include <stdio.h>
#ifndef PI
#error First include then compile
#else
void main() {
float a = 1000.999;
printf("b = %f\n", a);
}
#endif

ִʾ룬õ½ -

Compile Time Error: First include then compile

һԴļerror-example2.cʾ -

#include <stdio.h>
#define PI 3.14159
#ifndef PI
#error First include then compile
#else
void main() {
float a = 1000.999;
printf("b = %f\n", a);
}
#endif

 

ִʾ룬õ½ -

b = 1000.999023

Ծ֧ǵĹҵ

10Ԫ 50Ԫ





֤룺 ֤,?ˢ֤



84
1