c语言源码评判系统设计与实现与实现.doc
上传人:天马****23 上传时间:2024-09-12 格式:DOC 页数:67 大小:2.1MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

c语言源码评判系统设计与实现与实现.doc

c语言源码评判系统设计与实现与实现.doc

预览

免费试读已结束,剩余 57 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

北京邮电大学Page1C语言源码评判系统设计与实现摘要C语言源码评判系统是智能信息处理技术的具体应用,系统可以自动完成选择题、填空题、简答题的自动评判,并自动编译、运行用户提交的源代码。实现的C语言源码评判系统,采用MySQL数据库保存用户身份信息,实现用户创建与删除,主要包括管理员、教师和学生三种身份。同时,在数据库中,还保存有学生的考试成绩与试卷提交时间,最重要的是数据库中保存有C语言试题库。Qt界面通过MySQL数据库API,访问并管理数据库中的相关数据信息,包括用户身份信息、成绩和C语言题库等。它通过Qt界面的方式提交用户针对特定问题设计的源代码,然后进行自动评判,立即反馈信息,给计算机专业数据结构、算法等课程的教学和学习带来极大的方便。本文在研究了当前流行的源代码自动评判系统后,针对源代码自动评判系统受时间地点限制、并发处理能力差、可伸缩性差等问题,完成改进的设计方案,并在Linux和Windows环境下用C/C++开发实现。系统遵循软件工程设计规范,针对提高系统可用性作了设计,并进行了性能测试和优化设计。关键词:多线程,高可用性,自动阅卷CProgramAutomaticJudgeSystemAbstractTheCprogramautomaticjudgesystemisintelligentinformationprocessingtechnology,specificapplication,thesystemCallautomaticallycompileandruntherisertosubmitthesourcecodeandsystemtimeconsumedbyuserprograms.JudgingsystemofimplementationoftheClanguagesourcecode,usingMySQLdatabasetostoretheuseridentityinformation,realizestheusertocreateanddelete,includingadministrators,teachersandstudentsofthreekindsofidentity.Atthesametime,inthedatabase,butalsoholdthestudents'testscoresandtestsubmissiontime,databaseisthemostimportantmediatorwithClanguagetest.QtinterfacethroughtheMySQLdatabaseAPI,accessandmanagementoftherelateddatainthedatabaseinformation,includinguseridentityinformation,gradesandClanguagetest,etc.ItissubmittedviaaQtUIdesignedforuserstoissue-specificsourcecode,andthenautomaticallyjudgedimmediatelyfeedbacktothecomputersciencedatastructures,algorithmssuchsourcefromtheteachingandlearninghasbroughtgreatconvenience.Thispaperstudiesthesourcecodeforthepopularautomaticjudgesystem,thesourcecodefortheautomaticjudgesystembythetimeandplaceconstraints,concurrentprocessingcapabilityispoor,andpoorscalabilityissues,thecompletionofanimproveddesign,andinLinux&WindowswiththeC/C++developmentenvironmenttoachieve.System,followthesoftwareengineeringdesignspecificationsforimprovingsystemavailabilitywasdesignedandcarriedoutperformancetestingandoptimizationofthedesign.Keywords:Multi-threading,Highavailability,automaticscoring目录TOC\o"1-3"\h\uHyperlink\l"_Toc19239687"摘