code

所属分类网络编程
开发工具:C-C++
文件大小:1KB
下载次数:2
上传日期:2018-04-13 10:28:28
上 传 者鬼谷丶逝
说明:  创建一个静态的顺序表存放整数。大小为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.)

文件列表
code.txt, 4536 , 2018-04-13

近期下载者

相关文件

评论我要评论

收藏者