你可以给我解析一下你帮我解的那个程序吗,我不是很懂为什么要那么填啊#include "stdafx.h"#include "stdio.h"int _tmain(int argc, _TCHAR* argv[]){ int intNumbers[10],intChange; int i, j; bool bolMark = false; pri
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/24 19:18:14
![你可以给我解析一下你帮我解的那个程序吗,我不是很懂为什么要那么填啊#include](/uploads/image/z/15022980-36-0.jpg?t=%E4%BD%A0%E5%8F%AF%E4%BB%A5%E7%BB%99%E6%88%91%E8%A7%A3%E6%9E%90%E4%B8%80%E4%B8%8B%E4%BD%A0%E5%B8%AE%E6%88%91%E8%A7%A3%E7%9A%84%E9%82%A3%E4%B8%AA%E7%A8%8B%E5%BA%8F%E5%90%97%2C%E6%88%91%E4%B8%8D%E6%98%AF%E5%BE%88%E6%87%82%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E9%82%A3%E4%B9%88%E5%A1%AB%E5%95%8A%23include+%22stdafx.h%22%23include+%22stdio.h%22int+_tmain%28int+argc%2C+_TCHAR%2A+argv%5B%5D%29%7B++++int+intNumbers%5B10%5D%2CintChange%3B+++++int+i%2C+j%3B++++bool+bolMark+%3D+false%3B++++pri)
你可以给我解析一下你帮我解的那个程序吗,我不是很懂为什么要那么填啊#include "stdafx.h"#include "stdio.h"int _tmain(int argc, _TCHAR* argv[]){ int intNumbers[10],intChange; int i, j; bool bolMark = false; pri
你可以给我解析一下你帮我解的那个程序吗,我不是很懂为什么要那么填啊
#include "stdafx.h"
#include "stdio.h"
int _tmain(int argc, _TCHAR* argv[])
{
int intNumbers[10],intChange;
int i, j;
bool bolMark = false;
printf("Enter10 numbers:\n");
for (i = 0; i
你可以给我解析一下你帮我解的那个程序吗,我不是很懂为什么要那么填啊#include "stdafx.h"#include "stdio.h"int _tmain(int argc, _TCHAR* argv[]){ int intNumbers[10],intChange; int i, j; bool bolMark = false; pri
printf("The result of sorting:\n");从这句可推断出这个程序是关于排序的.然后我们再看for循环,怎样才能完成排序,ntChange= intNumbers[j]; intNumbers[j]= intNumbers[j - 1]; intNumbers[j- 1] = intChange;从这三条语句可看出操作的下标是j,所以条件中必然跟j相关,从而可得出intNumbers[j]intNumbers[j-1].