当前位置:网站首页>C language set operation
C language set operation
2022-06-27 16:21: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
边栏推荐
- Condom giants' sales have fallen by 40% in the past two years. What are the reasons for the decline?
- ICML 2022 | 阿⾥达摩院最新FEDformer,⻓程时序预测全⾯超越SOTA
- 实现简单的三D立方体自动旋转
- NFT dual currency pledge liquidity mining DAPP contract customization
- The role of the symbol @ in MySQL
- Cesium uses mediastreamrecorder or mediarecorder to record screen and download video, as well as turn on camera recording. [transfer]
- LeetCode每日一练(杨辉三角)
- Nemo of pulseaudio (22)
- 3.1 simple condition judgment
- 智慧风电 | 图扑软件数字孪生风机设备,3D 可视化智能运维
猜你喜欢

E modulenotfounderror: no module named 'psychopg2' (resolved)

# Cesium实现卫星在轨绕行

List转Table

LeetCode每日一练(杨辉三角)

EMQ 助力青岛研博建设智慧水务平台

Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing

2022年中国音频市场年度综合分析
Yyds dry inventory brief chrome V8 engine garbage collection

LeetCode每日一练(两数之和)

What is RPC
随机推荐
一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】
Scrapy framework (I): basic use
The time of localdatetime type (2019-11-19t15:16:17) is queried with the time range of Oracle
[pyGame games] this "eat everything" game is really wonderful? Eat them all? (with source code for free)
Markdown syntax
SQL parsing practice of Pisa proxy
利用Redis实现订单30分钟自动取消
Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
Li Chuang EDA learning notes 16: array copy and array distribution
The array of C language is a parameter to pass a pointer
Design of FIR digital filter
A distribution fission activity is more than just a circle of friends!
express
Leetcode daily practice (main elements)
数组表示若干个区间的集合,请你合并所有重叠的区间,并返回 一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间 。【LeetCodeHot100】
如果想用dms来处理数据库权限问题,想问下账号只能用阿里云的ram账号吗(阿里云的rds)
localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
PolarDB-X开源版有没有支持 mysql5.7 的版本?
Luogu_ P1007 single log bridge_ thinking
特殊函数计算器