Direct insertion

xiaoxiao2021-04-03  241

#include "stdio.h" #include "conoe.h"

Main () {int a [] = {8, 6, 7, 5, 3, 4, 2, 1, 0, 9}, i, j, k, m; for (i = 1; i <10; i ) ) {For (j = 0; j = j 1; m -) / * m: i ----> J 1, in order to put A [i] inserted and spatial * / a [m] = a [m-1]; // Mobile A [J] = K; // assignment Break;} for (k = 0; k <10; k ) Printf ("% d", a [k]); // outputs the entire array after being inserted to learn Printf ("/ n / n");

Printf ("/ n / npress any key to display the result ... / n / n"); getCh (); for (k = 0; k <10; k ) Printf ("% d", a [k] );

Getch ();

I have to write a chain table, but I will take the exam tomorrow, or I have a better break. ^ _ ^

转载请注明原文地址:https://www.9cbs.com/read-131488.html

New Post(0)