Project 1 (4) in week 1-Tossing two-dimensional arrays

Source: Internet
Author: User
Tags integer numbers

Project 1 (4) in week 1-Tossing two-dimensional arrays

/* Copyright (c) 2014, School of Computer Science, Yantai University * All rights reserved. * file name: test. cpp * Author: Chen Danni * completion date: November 30, 2014 * version number: v1.0 ** Problem description: none * input Description: enter some integer numbers * program output: output two-dimensional array */# include

 
  
Using namespace std; int main () {int I, j; // create a two-dimensional integer array with five rows and four columns, assign the initial values int a [5] [4] ={{}, {} to the first 10 elements in the array }, {16, 17 }}; // enter the value cout for the 10 elements in the last two columns on the keyboard <"Enter 10 integers:" <

  
   
> A [I] [j]; // The cout output is prioritized in the row order. <"the number in the array is:" <

   
    
= 0; j --) cout <

    

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.