当前位置:网站首页>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
边栏推荐
猜你喜欢
leetcode:6109. Number of people who know the secret [definition of DP]
LVGL 8.2 Line
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
基于51单片机的超声波测距仪
Digi XBee 3 rf: 4 protocols, 3 packages, 10 major functions
Practical puzzle solving | how to extract irregular ROI regions in opencv
(1)性能调优的标准和做好调优的正确姿势-有性能问题,上HeapDump性能社区!
【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程
【MySQL从入门到精通】【高级篇】(四)MySQL权限管理与控制
92.(cesium篇)cesium楼栋分层
随机推荐
Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
PyTorch的自动求导机制详细解析,PyTorch的核心魔法
Learn kernel 3: use GDB to track the kernel call chain
[information retrieval] link analysis
Ultrasonic distance meter based on 51 single chip microcomputer
统计php程序运行时间及设置PHP最长运行时间
2022 game going to sea practical release strategy
LVGL 8.2 Line wrap, recoloring and scrolling
产业互联网则具备更大的发展潜能,具备更多的行业场景
一文概览2D人体姿态估计
LVGL 8.2 Menu
92.(cesium篇)cesium楼栋分层
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
opencv3.2 和opencv2.4安装
Docker compose public network deployment redis sentinel mode
An overview of 2D human posture estimation
Classify boost libraries by function
商業智能BI財務分析,狹義的財務分析和廣義的財務分析有何不同?
Intelligence d'affaires bi analyse financière, analyse financière au sens étroit et analyse financière au sens large sont - ils différents?
Opencv3.2 and opencv2.4 installation