C++问题.输入10个数,将其中最小的数与第一个数对换,将其中最大的数与最后一个数交换.用指针实现.# include using namespace std;void main(){\x09int number[10];\x09int *max,*min,*p,temp;\x09cout
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/27 18:03:42
![C++问题.输入10个数,将其中最小的数与第一个数对换,将其中最大的数与最后一个数交换.用指针实现.# include using namespace std;void main(){\x09int number[10];\x09int *max,*min,*p,temp;\x09cout](/uploads/image/z/6844416-24-6.jpg?t=C%2B%2B%E9%97%AE%E9%A2%98.%E8%BE%93%E5%85%A510%E4%B8%AA%E6%95%B0%2C%E5%B0%86%E5%85%B6%E4%B8%AD%E6%9C%80%E5%B0%8F%E7%9A%84%E6%95%B0%E4%B8%8E%E7%AC%AC%E4%B8%80%E4%B8%AA%E6%95%B0%E5%AF%B9%E6%8D%A2%2C%E5%B0%86%E5%85%B6%E4%B8%AD%E6%9C%80%E5%A4%A7%E7%9A%84%E6%95%B0%E4%B8%8E%E6%9C%80%E5%90%8E%E4%B8%80%E4%B8%AA%E6%95%B0%E4%BA%A4%E6%8D%A2.%E7%94%A8%E6%8C%87%E9%92%88%E5%AE%9E%E7%8E%B0.%23+include+using+namespace+std%3Bvoid+main%28%29%7B%5Cx09int+number%5B10%5D%3B%5Cx09int+%2Amax%2C%2Amin%2C%2Ap%2Ctemp%3B%5Cx09cout)
C++问题.输入10个数,将其中最小的数与第一个数对换,将其中最大的数与最后一个数交换.用指针实现.# include using namespace std;void main(){\x09int number[10];\x09int *max,*min,*p,temp;\x09cout
C++问题.输入10个数,将其中最小的数与第一个数对换,将其中最大的数与最后一个数交换.用指针实现.
# include
using namespace std;
void main()
{
\x09int number[10];
\x09int *max,*min,*p,temp;
\x09cout
C++问题.输入10个数,将其中最小的数与第一个数对换,将其中最大的数与最后一个数交换.用指针实现.# include using namespace std;void main(){\x09int number[10];\x09int *max,*min,*p,temp;\x09cout
//正确的如下,请测试.
# include
using namespace std;
void main()
{
\x09int number[10];
\x09int *max,*min,*p,temp;
\x09cout