2016备课讲义第章.pptVIP

  • 10
  • 0
  • 约2.43万字
  • 约 105页
  • 2016-12-05 发布于北京
  • 举报
2016备课讲义第章

* p,q有效 int p=1, q=5; float f1( int a) { int b,c; ..... } char c1,c2; main( ) { int m, n; ..... } a,b,c有效 m,n有效 c1,c2有效 全局变量 局部变量 全局变量增加了函数间数据联系的渠道,在函数调用时可以得到多于一个的返回值。 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. * 4 int min; int max (int x, int y) { int z; min=(xy)?x : y; z=(xy)? x : y ; return z; } void main (void) { int a,b,c; cinab; c=max (a , b) ; cout“The max is”cendl; cout“ The min is”minendl; } 全局变量 a b c 4 1 4 x y 1 min 0 z 4 1 函数值为4 Th

文档评论(0)

1亿VIP精品文档

相关文档