文件名称:code
介绍说明--下载内容来自于网络,使用问题请自行百度
创建一个静态的顺序表存放整数。大小为10.完成以下的操作输入6个整数,1.打 印出顺序表中的内容,并显示表中剩余的空间个数。在顺序表中的第3个位置插入元素O.2.打印出顺序表中的内容,并显示表中剩余的空间个数。再试图向表中第11个位置插入整数0,3.程序提示超出范围。4.删除表中第6个元素,打印出顺序表中的内容,并显示表中剩余的空间个数。
二:编写一程序,动态地创建一个顺序表。要求顺序表初始长度为20,向顺序表中输 入15个整数,并打印出来: 再删除顺序表中的第5个元素。打印出删除后的结果。(Create a static sequence table to store integers. The size is 10., the following operations are input 6 integers, 1. prints out the contents in the sequence table, and displays the remaining space in the table. In the third place of the sequence table, insert the element O.2., print out the contents in the sequence table, and show the remaining space in the table. Then try to insert integer 0,3. program into eleventh locations in the table, indicating that it is out of range. 4., delete the sixth elements in the table, print out the contents in the sequence table, and show the remaining space in the table.
Two: write a program to create a sequence table dynamically. It is required that the initial length of the sequence table is 20, input 15 integers into the sequence table, and print it out: then delete the fifth elements in the order table. Print out the result after the deletion.)
二:编写一程序,动态地创建一个顺序表。要求顺序表初始长度为20,向顺序表中输 入15个整数,并打印出来: 再删除顺序表中的第5个元素。打印出删除后的结果。(Create a static sequence table to store integers. The size is 10., the following operations are input 6 integers, 1. prints out the contents in the sequence table, and displays the remaining space in the table. In the third place of the sequence table, insert the element O.2., print out the contents in the sequence table, and show the remaining space in the table. Then try to insert integer 0,3. program into eleventh locations in the table, indicating that it is out of range. 4., delete the sixth elements in the table, print out the contents in the sequence table, and show the remaining space in the table.
Two: write a program to create a sequence table dynamically. It is required that the initial length of the sequence table is 20, input 15 integers into the sequence table, and print it out: then delete the fifth elements in the order table. Print out the result after the deletion.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
code.txt | 4536 | 2018-04-13 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.