[Source code] C/C++ sports accounting sub-system

If you need other topics, you can read the outline: click me to jump

Topic introduction

Language used:

Both versions will be released:
Version 1: C language
Version 2: C++

Code amount:

500+

Topic introduction:

Requirement: Initialization input: N-total number of participating schools, M-number of men’s competitions, W-number of women’s competitions. The ranking of each item can be as follows: Top 5: 7 points for the first place, 5 points for the second place , The third place scores 3, the fourth place scores 2, and the fifth place scores 1. Take the top 3: the first place scores 5, the second place scores 3, and the third place scores 2;

Features

Games scoring system=★
★==-----------------------------------------------
-------------0. Notice to users ----------------------
----------- 1. Input information ------------
----------- 2. Input information query------------
----------- 3. Count the total scores of each school -----
----------- 4. According to the school inquiry-
----------- 5. Query according to the project-
----------- 6. Modify information—
----------- 7. Delete information—
----------- 8. Output records to file—
----------- 9. Exit the system------
-----------------------------------------------
----- Please enter your choice-----------==★

Source code effect display

Part of the source code and effect display: Store all game information in the Games through the structure, calculate the ranking and count the total score through the method.

struct RES{
    
    
	int school;  //学校编号 
	int item ;   // 项目编号 
	char name[20];  //姓名 
	char sex;   //性别  w  和  m 
	int ranking; //排名 
};

//定义学校,可自行添加  
char SCHOOL[3][20] = {
    
    
	"北京学校",
	"上海学校",
	"广东学校" 
};

//定义项目,可 行添加 
char ITEM[3][20] = {
    
    
	"三级跳远",
	"投掷标枪",
	"百米赛跑" 
};

Enter the game information through step-by-step prompts:

enter 2 to query all information.

Enter 3 to enter the statistics function.

Enter 4 to enter the school query function.

Enter 5 to enter the project query function.

Enter 8 to save the file and automatically read the file next time you run it

. I won't demonstrate it~

With report (content)

This topic not only has the source code, but also comes with its own report. The report is for reference only. Most of the content is available. You can modify it according to your own requirements.

contact me

You can choose any contact, don't add it repeatedly!

Contact 1: QQ207732272

Contact 2: QQ1436834022

Contact 3: QQ149478984

If you need other topics, you can read the outline: click me to jump

Guess you like

Origin blog.csdn.net/KnockingCode/article/details/115374230