摘要:
void sort(int *a, int len){ for (int i = 0; i a[j + 1]) { a[j] = a[j] ^ a[j + 1]; a[j+1] = a[j] ^ a[j + 1... 阅读全文
摘要:
import java.util.Arrays;public class sort { public static void main(String[] args) { // TODO 自动生成的方法存根 int[] a = {1,2,323,23,543,12,5... 阅读全文
摘要:
#include #include void main(){ int a[3][4] = { { 1, 2, 3, 4 }, { 4, 23, 3, 3 }, { 6 } }; for (int i = 0; i < 3; i++) { for (int j = 0;... 阅读全文
摘要:
#include #include #define N 10void main(){ int a[N][N] = { 0 }; for (int i = 0; i < N; i++) { for (int j = 0; j < i+1; j++) { if (j == 0 || i == j... 阅读全文