-
C#入门经典教程指出,结构程序设计存在一个不足之处,即代码无法实现重用
资源介绍
结构程序设计的不足—代码不能重用
void main()
{
int doorN_car1 = 2;
int color_car1 = 0;
int speed_car1 = 100;
printf("%d %d %d\n", doorN_car1, color_car1, speed_car1);
int doorN_car2 = 4;
int color_car2 = 1;
int speed_car2 = 80;
printf("%d %d %d\n", doorN_car2, color_car2, speed_car2);
}