I. Questions and codes/ * File name: C + + experiment 5* : Liu Yin * completion date: May 10, 2016 * Version number: v1.0 * Description of the task and solution method part: Separating odd and even numbers using an array * Enter a description:
One, array selection#include void Main () { const int n=3; int a[n],b[n],i,j,k=0; cout>a[i]; for (i=0;iSecond, summation#include void Main () { const int n=3;
Item 1 Array separation#include using namespace std; int main () { int a[10],b[10],c[10],i,m=0,n=0,j,o; cout>a[i]; for (i=0;iItem 3-Achievements #include int Main () {double G[10],max,min,a=0,b=0,aver,m,n,s[10],t[10];int
DescriptionBenny has a spacious farm land to irrigate. The farm land was a rectangle, and is divided to a lot of SAMLL squares. Water pipes is placed in these squares. Different Square has a Different type of pipe. There is one types of pipes, which
Item 2: Array selection/* Item 1: Array separation Enter 10 numbers from the keyboard in the array A, put the odd number in the array B, and the even in the array C and then output separately. */#include using namespace Std;int main () {int A[10],
I. SummationEnter 10 numbers from the keyboard into the array A, and the sum of the positive and negative numbers in the a array.#include void Main () { int a[10],i=0,sum1=0,sum2=0; cout>a[i]; if (a[i]>=0)
Item 3-Achievements#include int main () {double G[10],max,min,a=0,b=0,aver,m,n,s[10],t[10];int i,j=0,k=0;cout>g[i]; if (g[i]100) coutmax) Max=g[i];else if (g[i]Item 4-String#include #include using namespace std; int main () { char
Array separation#include using namespace Std;int main () {const int n=10;int a[n],b[n],c[n],j=0;cout>a[i];} coutArray Selection#include using namespace Std;int main () {const int n=10;int a[n],b[n],i,j,k=0;cout>a[i];for (i=0;iResults#include using
Item 2: Array selection#include using namespace Std;int main () {const int n=10;int a[n],b[n],i,j,k=0;cout>a[i];for (i=0;iItem 4: String#include #include using namespace std; int main () { char str[50]; int i=0,n1=0,n2=0
Yesterday went to a senior company, talked about my doubts, and then did a problem. Have some harvest, want to share with you. It is mainly the sizeof problem of C + + object.First on the code#include "stdafx.h" #include class A {};class B {int _num;
Item three, achievement#include #include using namespace std; int main () {const int n=10; int a[n],b[n],c[n],u=0,p=0,k=0,n=0,j=0,s;cout>a[i]; if (a[i]>100| | a[i]max) max=a[i]; if (a[i]Item four, string#include #include
* File Name: Array separator * by: Gong * Completion date: May 10, 2016 * Version number: v1.0 * Description of the task and solution method part: Array separation. * Input Description: Enter 10 number * Problem Description: Enter 10 numbers
I. Questions and codes/ * file name: 1.cpp * Creator: Loo * Completion date: May 10, 2016 * Version number: v1.0 * Description of task and solution method part: Using cyclic judgment input 10 number of parity * Input description : Any input
I. Questions and codes /* * file name: Array. cpp * Author: Li Zhongxin * Completion date: May 10, 2016 * Version number: v1.0 * for task and solver Description of the method: using array knowledge to implement classification * Input Description:
I. Questions and codes/* * file name: 1* Creator: Liang * Completion date: 2016 May 5th * Version Number: v1.0 * Description of task and solution method Section: Array Separation * Input Description: no * problem Description: Array
Source code version for. NET Framework 4.6.1Keep up to date on this seriesThere are inputs and outputs.(Note: Non-basic, mainly related to the implementation principle of the stack)The level is limited, if there is something wrong, look at it.A
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service