当前位置:网站首页>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
边栏推荐
- Can polardb-x be accessed through the client of related tools as long as the client supporting JDBC / ODBC protocol is afraid?
- Li Chuang EDA learning notes 16: array copy and array distribution
- 一场分销裂变活动,不止是发发朋友圈这么简单!
- # Cesium实现卫星在轨绕行
- Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance
- Array represents a collection of several intervals. Please merge all overlapping intervals and return a non overlapping interval array. The array must exactly cover all the intervals in the input. 【Le
- About tensorflow using GPU acceleration
- 字节跳动埋点数据流建设与治理实践
- Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp
- QT5 之信号与槽机制(演示控件自带的信号与槽函数关联)
猜你喜欢
分布式Session解决方案
阿里云刘珅孜:云游戏带来的启发——端上创新
Redis Series 2: data persistence improves availability
字节跳动埋点数据流建设与治理实践
鸿蒙发力!HDD杭州站·线下沙龙邀您共建生态
P.A.R.A 方法在思源的简易应用(亲测好用)
一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】
Luogu_ P1007 single log bridge_ thinking
Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability
3.2 multiple condition judgment
随机推荐
锚文本大量丢失的问题
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
Leetcode daily practice (main elements)
请问阿里云实验中 k8s 对于3306端口转发,同时开启mysql客户端就会异常终止,是什么原因呢?
About MySQL: the phenomenon and background of the problem
郎酒两大王牌产品成都联动共振,持续带动光瓶酒消费浪潮
利用Redis实现订单30分钟自动取消
树莓派初步使用
List to table
About how vs2019c # establishes the login interface, the user name and password entered must match the records in the access database
Etcd可视化工具:Kstone部署(一),基于Helm快速部署
Yyds dry inventory brief chrome V8 engine garbage collection
Nemo of pulseaudio (22)
Distributed session solution
Weekly snapshot of substrate technology 20220411
Design of vga/lcd display controller based on FPGA (with code)
跨域图像的衡量新方式Style relevance:论文解读和代码实战
Taishan Office Technology Lecture: the first difficulty is vertical positioning
LeetCode每日一练(主要元素)
Luogu_ P1008 [noip1998 popularization group] triple strike_ enumeration