当前位置:网站首页>C language set operation
C language set operation
2022-07-04 14:32:00 【_ Programming_】
C Language set operation
【 subject 13】 Set operations
One 、 Design topic
Set operations
Two 、 Design content
【 Title Description 】
There are two sets represented by a single linked list A、B, Its element type is int And store... In a non decreasing manner , The head nodes are a、b. The result sets in the following questions are also required to be stored in a non decreasing manner , The result set does not affect the original set .
【 Subject requirements 】
1) Write a collection element test function IN_SET, If the element has already returned in the collection 0, Otherwise return to 1;
2) Write a function to input the set elements and insert them into the single linked list INSERT_SET, Ensure that the elements in the input set are unique and stored in the single linked list in a non decreasing manner ;
3) Write the set element output function , Output the set linked list in a non incremental manner ;
4) Write a solution set A、B Of C=A∩B Function of , And output the set C The elements of ;
5) Write a solution set A、B And D=A∪B Function of , And output the set D The elements of ;
6) Please assemble A And B Symmetry difference of E=(A-B)U(B-A) Function of , And output the set D The elements of ;
7) Design a menu , With input set elements 、 Please assemble A、B Of C、 Please assemble A、B And D、 Please assemble A And B Symmetry difference of E、 Exit and other basic functions .
Test data : Self determination , But set A、B The number of elements must not be less than 16 individual .
【 Input / Output requirements 】
(1) After the application runs , Show a menu first , Then the user selects the corresponding operation items as required . After entering each operation , Input the corresponding information according to the prompts of the program ;
(2) Output the rendering of each function .
3、 ... and 、 The basic requirements
1、 Requirements for writing source programs :
1) Be able to realize the functions in the assignment ;
2) Make the interface as friendly as possible 、 intuitive 、 Easy to operate
3) The source program should have appropriate comments , Make the program easy to read .
2、 writing “ Course design report ", Requirements are as follows :
1) cover : Unified adoption 《 Curriculum design specification of Changzhou University 》 Cover format
2) Mission statement
3) Catalog
4)“ Course design report " Text
3、 Course design acceptance requirements :
1) Run the designed system ;
2) Answer relevant questions ;
3) Submit course design report ;
4) Submit the source program .
Four 、 Schedule
1、 Systems analysis 、 Design preparation stage :4 Class hours
2、 Programming and debugging stage :30 Class hours
3、 Summarize and write the course design report :2 Class hours
4、 Machine room assessment stage :4 Class hours
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
边栏推荐
猜你喜欢

Transplant tinyplay for imx6q development board QT system

Practical puzzle solving | how to extract irregular ROI regions in opencv

Why should Base64 encoding be used for image transmission

Digi重启XBee-Pro S2C生产,有些差别需要注意

【信息检索】分类和聚类的实验

Intelligence d'affaires bi analyse financière, analyse financière au sens étroit et analyse financière au sens large sont - ils différents?

第十七章 进程内存

软件测试之测试评估

Detailed explanation of visual studio debugging methods

实时数据仓库
随机推荐
Visual Studio调试方式详解
NowCoder 反转链表
数据埋点的一些问题和想法
R language dplyr package summary_ If function calculates the mean and median of all numerical data columns in dataframe data, and summarizes all numerical variables based on conditions
尊重他人的行为
电商系统中红包活动设计
流行框架:Glide的使用
Redis daily notes
Popular framework: the use of glide
codeforce:C. Sum of Substrings【边界处理 + 贡献思维 + 灵光一现】
R language uses follow up of epidisplay package The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The col parameter specifies the
架构方面的进步
Xcode 异常图片导致ipa包增大问题
How to operate and invest games on behalf of others at sea
Respect others' behavior
LifeCycle
Ml: introduction, principle, use method and detailed introduction of classic cases of snap value
Some problems and ideas of data embedding point
Red envelope activity design in e-commerce system
nowcoder重排链表