֪ Ŀ Lib Ƶ iPerson γ ֤ ѯ 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#ifָ
123
1  
 

#ifΪ٣#elseԤָʽ #if#elif#ifdef#ifndefָһʹá

#if expression
//if code
#else
//else code
#endif

#elif﷨

#if expression
//if code
#elif expression
//elif code
#else
//else code
#endif

#elseʾ

һʹ#elseԤָӡһԴļelse-example.cʵ -

#include <stdio.h>
#define NUMBER 100
void main() {
#if (NUMBER==10)
printf("Value of Number is: 10");
#else
printf("Value of Number is: %d", NUMBER);
#endif
}

 

ִʾ룬õ½ -

Value of Number is: 100

Ծ֧ǵĹҵ

10Ԫ 50Ԫ





֤룺 ֤,?ˢ֤



123
1