当前位置:网站首页>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
边栏推荐
- 2022年中国音频市场年度综合分析
- A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe
- 3.3 one of the fixed number of cycles
- A distribution fission activity is more than just a circle of friends!
- localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
- 分布式Session解决方案
- 等保2.0密码要求是什么?法律依据有哪些?
- Li Chuang EDA learning notes 16: array copy and array distribution
- 16 -- remove invalid parentheses
- 开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事
猜你喜欢

2022年中国音频市场年度综合分析

Source NAT address translation and server mapping web page configuration of firewall Foundation

Leetcode daily practice (longest substring without repeated characters)

继手机之后 报道称三星也削减了电视等家电产品线的产量

一场分销裂变活动,不止是发发朋友圈这么简单!

Julia constructs diagonal matrix

防火墙基础之源NAT地址转换和服务器映射web页面配置

数据中心表格报表实现定制统计加班请假汇总记录分享

Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment

事件监听机制
随机推荐
米哈游起诉五矿信托,后者曾被曝产品暴雷
ORM表关系及操作
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
防火墙基础之源NAT地址转换和服务器映射web页面配置
Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
#yyds干货盘点#简述chromeV8引擎垃圾回收
Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing
ICML 2022 ぷ the latest fedformer of the Dharma Institute of Afghanistan ⻓ surpasses SOTA in the whole process of time series prediction
Leetcode daily practice (main elements)
Condom giants' sales have fallen by 40% in the past two years. What are the reasons for the decline?
Design of FIR digital filter
如果想用dms来处理数据库权限问题,想问下账号只能用阿里云的ram账号吗(阿里云的rds)
Google Earth Engine(GEE)——Export. image. The difference and mixing of toasset/todrive, correctly export classification sample data to asset assets and references
关于#mysql#的问题:问题遇到的现象和发生背景
分布式Session解决方案
[170] the PostgreSQL 10 field type is changed from string to integer, and the error column cannot be cast automatically to type integer is reported
带你认识图数据库性能和场景测试利器LDBC SNB
Li Chuang EDA learning notes 16: array copy and array distribution
SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架
树莓派初步使用