我的c#项目中的想法。 [英] Ideas in my c# Project.

查看:85
本文介绍了我的c#项目中的想法。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在这里只是为了头脑风暴一些想法......基本上我在c#中开发了一个简单的Windows窗体应用程序,允许用户提出多项选择题。所有问题都从后端数据库中提取,所选的每个答案都与userID一起存储在数据库中..



到目前为止一切正常,但我想我我陷入困境并试图弄清楚如何使这个系统能够自动标记或给出每个正确选择答案的用户分数,这就是我被困住的地方。



再次,正如我所说,我正在寻找和寻找想法,我不是要求任何人让我为我编写代码。



感谢您的时间。

Hi,
I am here just to "brainstorm" some ideas.. basically I developed a simple windows form application in c# that allows users to take multiple choice questions. All questions are pulled from a back end database and every answer selected is stored in database together with the userID..

Everything is working fine thus far, but I think i'm stuck and tryning to figure out how i can make this system sort of automatically mark or give a score of the user for every correct selected answer, this is where I am stuck.

Again as I said I am looking and searching up for ideas , I am not asking anyone for me to write code for me.

Thank you for your time.

推荐答案

您应该将得分率与每个好的答案联系起来,然后您还可以对每类问题使用思考百分比(如果您使用多个类别)。然后计算用户的最终得分应该自动使用所有这些。
You should associate score rates to each good answer, then you could also use pondering percents for each category of questions (if you are using multiple categories). Then the computation of the final score for a user should automatically use all of these.


一旦我在ASP .Net中开发了相同的内容。我正在动态添加控件。控件名称与数据库ID相关。对于那些控件,我添加了事件处理,我可以从数据库查询中检查答案是否正确,控件的ID是否正确。



我希望这样帮助!
Once I've developed the same in ASP .Net. I was working with dynamically adding controls. Control names were related to the database ID. For that controls I've added event handling where I was able to check from database query if the answer is correct or not by ID of the control.

I hope this helps!


将所有问题和正确答案放入某种容器中,每次只需要进行遍历
What about putting all questions along with correct answers into some sort of container,each time u just need to do a traversal


这篇关于我的c#项目中的想法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆