C语言与Delphi相比没有那么严格的语法, 可读性感觉没有Delphi强,代码清晰需要看自己的写法.
C语言是一个大小写识别的语言.所以在很多地方需要注意.
1main()
2{
3 int Value,ValueA,Sum;
4 printf("Please enter the digital \n");
5 printf("Please enter Value ");
6 scanf("%d",&Value);
7 printf("Please enter ValueA ");
8 scanf("%d",&ValueA);
9 Sum = Value+ValueA;
10 printf("Value =%d , ValueA =%d ,Sum = %d \n",Value,ValueA,Sum);
11 printf("MaxValue This %d",Max(Value,ValueA));
12 getch();
13}
14int Max (int Value, int ValueA) /*自定义函数*/
15{
16 int ValueCmp;
17 if (Value > ValueA)
18 ValueCmp = Value;
19 else
20 ValueCmp =ValueA;
21 return(ValueCmp);
22}