1. Questions and codes
/* File name: Array separator * by: Juxun * Completion date: 5 months 8 days * Version number: v1.0 * Description of the task and solution Method Section: * Input Description: * Problem Description: From a An array of 10 numbers, separating even into an array, odd to another number of groups * Program output: * Problem Analysis: * Algorithm design: * /#include <iostream.h>void main () {int a[10],i, N=0,j=0,x,v,b[10],c[10];for (i=0;i<10;i++) {cout<< "Please enter a number"; Cin>>a[i];if (a[i]%2==0) {c[n]=a[i];n++;} else{b[j]=a[i];j++;}} for (x=0;x<j;x++) {cout<< "even has" <<B[X]<<ENDL;} for (v=0;v<n;v++) {cout<< "odd" <<C[V]<<ENDL;}2, operation and results
3, Experience
Through this programming, more proficient in the programming process, understand the method of array separation
4. Summary of Knowledge points
Is the detection of array programming and is familiar with the inverse method of arrays separation
C + + experiment 5--array separation