文件名称:Data_struct_1
介绍说明--下载内容均来自于网络,请自行研究使用
数据结构课后设计题第一章
◆1.16② 试写一算法,如果三个整数X,Y和Z
的值不是依次非递增的,则通过交换,令其为
非递增。
要求实现下列函数:
void Descend(int &x, int &y, int &z)
void Descend(int &x, int &y, int &z)
{ int temp
if(x<=y){temp=x x=y y=temp }
if(y<=z){temp=y y=z z=temp }
if(x<=y){temp=x x=y y=temp }
printf(" d, d, d",x,y,z)
}
-Data structure design question after class the first chapter ◆ 1.16 ② try to write a method, if the three integers X, Y and Z values not followed by non-increasing, through the exchange, make it a non-incremental. Required to achieve the following functions: void Descend (int & x, int & y, int & z) void Descend (int & x, int & y, int & z) (int temp if (x < = y) (temp = x x = y y = temp ) if (y < = z) (temp = y y = z z = temp ) if (x < = y) (temp = x x = y y = temp ) printf (" d, d, d " , x, y, z) )
◆1.16② 试写一算法,如果三个整数X,Y和Z
的值不是依次非递增的,则通过交换,令其为
非递增。
要求实现下列函数:
void Descend(int &x, int &y, int &z)
void Descend(int &x, int &y, int &z)
{ int temp
if(x<=y){temp=x x=y y=temp }
if(y<=z){temp=y y=z z=temp }
if(x<=y){temp=x x=y y=temp }
printf(" d, d, d",x,y,z)
}
-Data structure design question after class the first chapter ◆ 1.16 ② try to write a method, if the three integers X, Y and Z values not followed by non-increasing, through the exchange, make it a non-incremental. Required to achieve the following functions: void Descend (int & x, int & y, int & z) void Descend (int & x, int & y, int & z) (int temp if (x < = y) (temp = x x = y y = temp ) if (y < = z) (temp = y y = z z = temp ) if (x < = y) (temp = x x = y y = temp ) printf (" d, d, d " , x, y, z) )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Data_struct_1.txt