当前位置:网站首页>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
边栏推荐
- 第十七章 进程内存
- [MySQL from introduction to proficiency] [advanced chapter] (IV) MySQL permission management and control
- A collection of classic papers on convolutional neural networks (deep learning classification)
- Ml: introduction, principle, use method and detailed introduction of classic cases of snap value
- NowCoder 反转链表
- ML:SHAP值的简介、原理、使用方法、经典案例之详细攻略
- Test process arrangement (3)
- 2022 game going to sea practical release strategy
- Matters needing attention in overseas game Investment Agency
- STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于GPIO)
猜你喜欢
Scratch Castle Adventure Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
一文概览2D人体姿态估计
(1) The standard of performance tuning and the correct posture for tuning - if you have performance problems, go to the heapdump performance community!
leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]
The implementation of OSD on rk1126 platform supports color translucency and multi-channel support for Chinese
The failure rate is as high as 80%. What are the challenges on the way of enterprise digital transformation?
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
docker-compose公网部署redis哨兵模式
Xcode abnormal pictures cause IPA packet size problems
Nowcoder rearrange linked list
随机推荐
What is the difference between Bi financial analysis in a narrow sense and financial analysis in a broad sense?
Detailed index of MySQL
LVGL 8.2 LED
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
A collection of classic papers on convolutional neural networks (deep learning classification)
The failure rate is as high as 80%. What are the challenges on the way of enterprise digital transformation?
Map of mL: Based on Boston house price regression prediction data set, an interpretable case is realized by using the map value to the LIR linear regression model
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
Leetcode 61: 旋转链表
流行框架:Glide的使用
【C语言】指针笔试题
sql优化之查询优化器
R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
R language ggplot2 visualization: gganimate package creates animated graph (GIF) and uses anim_ The save function saves the GIF visual animation
Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
2022 game going to sea practical release strategy
LVGL 8.2 Draw label with gradient color
【算法leetcode】面试题 04.03. 特定深度节点链表(多语言实现)
Chapter 16 string localization and message Dictionary (2)
Solutions aux problèmes d'utilisation de l'au ou du povo 2 dans le riz rouge k20pro MIUI 12.5