摘要: implements of slection sorting with c++ codetemplate<class T> void selectionSort_1(T srcArr[],int n){ for (int i = 0;i < n ;i++) { int index = i; for (int j = i+1;j < n ;j++) { if (srcArr[j] <= srcArr[i]) { index = j; } ... 阅读全文
posted @ 2013-01-13 23:26 理想空间 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Consider the problem of adding two n-bit binary integers, stored in two n-element arrays A and B. The sum of the two integers should be stored in binary form in the an (n+1) -element array C. State the problem formally and write pseudocode for adding the two integers.[Pseudocode]Adding-A-B(A,B,C) .. 阅读全文
posted @ 2013-01-13 17:07 理想空间 阅读(475) 评论(0) 推荐(0) 编辑