<commit_before>#include <iostream>
#include "Student.h"
#include "StudentDB.h"

int main(int argc, char* argv[]) {
	//Welcoming information
	std::cout << "*************************" << std::endl;
	std::cout << "*欢迎使用考试报名系统！ *" << std::endl;
	std::cout << "*开发人员：侯剑锋1552719*" << std::endl;
	std::cout << "*************************" << std::endl << std::endl;

	//Set up the initial database
	std::cout << "首先请建立考生信息系统！" << std::endl;
	StudentDB* studentDB = new StudentDB();
	int n = 0;
	std::cout << "请输入考生人数：" << std::endl;
	std::cin >> n;
	std::cout << "请依次输入考生的考号，姓名，性别，年龄及报考类别（请以一个空格隔开各项）：" << std::endl;
	for (int i = 0; i < n; i++) {
		studentDB->addStudent(std::cin);
	}

	//Display the students that the user has just input
	std::cout << "您已经输入了如下数据：" << std::endl;
	studentDB->count();

	//Receive the user's choice and operate according to the choice in loops
	std::cout << "请选择您要进行的操作（1为插入，2为删除，3为查找，4为修改，5为统计，0为取消操作）：" << std::endl;
	char choice = '\0';
	while (std::cin >> choice) {
		//Cancel
		if (choice == '0') {
			std::cout << "即将退出考试报名系统！" << std::endl;
			delete studentDB;
			break;
		}

		//Insert
		else if (choice == '1') {
			studentDB->insertStudent();
		}

		//Delete
		else if (choice == '2') {
			studentDB->deleteStudent();
		}

		//Search
		else if (choice == '3') {
			studentDB->searchStudent();
		}

		//Modify
		else if (choice == '4') {
			studentDB->modifyStudent();
		}

		//Count
		else if (choice == '5') {
			studentDB->count();
		}

		//Exceptions
		else {
			std::cout << "Illegal input!!!" << std::endl;
		}

		std::cout << "请选择您要进行的操作（1为插入，2为删除，3为查找，4为修改，5为统计，0为取消操作）：" << std::endl;
	}

	return 0;
}<commit_msg>Update Exercise01.cpp<commit_after>#include <iostream>
#include "Student.h"
#include "StudentDB.h"

int main(int argc, char* argv[]) {
	// Welcoming information
	std::cout << "*************************" << std::endl;
	std::cout << "*欢迎使用考试报名系统！ *" << std::endl;
	std::cout << "*开发人员：侯剑锋1552719*" << std::endl;
	std::cout << "*************************" << std::endl << std::endl;

	// Set up the initial database
	std::cout << "首先请建立考生信息系统！" << std::endl;
	StudentDB* studentDB = new StudentDB();
	int n = 0;
	std::cout << "请输入考生人数：" << std::endl;
	std::cin >> n;
	std::cout << "请依次输入考生的考号，姓名，性别，年龄及报考类别（请以一个空格隔开各项）：" << std::endl;
	for (int i = 0; i < n; i++) {
		studentDB->addStudent(std::cin);
	}

	// Display the students that the user has just input
	std::cout << "您已经输入了如下数据：" << std::endl;
	studentDB->count();

	// Receive the user's choice and operate according to the choice in loops
	std::cout << "请选择您要进行的操作（1为插入，2为删除，3为查找，4为修改，5为统计，0为取消操作）：" << std::endl;
	char choice = '\0';
	while (std::cin >> choice) {
		// Cancel
		if (choice == '0') {
			std::cout << "即将退出考试报名系统！" << std::endl;
			delete studentDB;
			break;
		}

		// Insert
		else if (choice == '1') {
			studentDB->insertStudent();
		}

		// Delete
		else if (choice == '2') {
			studentDB->deleteStudent();
		}

		// Search
		else if (choice == '3') {
			studentDB->searchStudent();
		}

		// Modify
		else if (choice == '4') {
			studentDB->modifyStudent();
		}

		// Count
		else if (choice == '5') {
			studentDB->count();
		}

		// Exceptions
		else {
			std::cout << "Illegal input!!!" << std::endl;
		}

		std::cout << "请选择您要进行的操作（1为插入，2为删除，3为查找，4为修改，5为统计，0为取消操作）：" << std::endl;
	}

	return 0;
}
{'fraction_non_alphanumeric': 0.23478260869565218, 'fraction_numerical': 0.017991004497751123, 'mean_word_length': 3.8069164265129682, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4407127', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1514, 'n_words': 281}