创建Windows应用程序,以在用户输入学生的姓名时显示相应学生的生日. [英] Create a windows application to display the respective student’s date of birth when the student’s name is entered by the user.

查看:172
本文介绍了创建Windows应用程序,以在用户输入学生的姓名时显示相应学生的生日.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建Windows应用程序,以在用户输入学生的姓名时显示相应学生的生日.例如;

在文本文件中,学生姓名和出生日期以以下格式存储:

辛西娅女士:1992年12月4日
杰克先生:1990年10月3日

解决方案

您首先应该需要代码来解析存储/更新的文本文件.检查此链接

http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx#Y0 [^ ]

通过使用此方法,您可以创建名称和DOB的映射/哈希表.

然后,一旦用户输入名称,您就可以获取其DOB并显示它.


只需在Google中搜索文件处理并创建字符串,然后将其存储...


Create a windows application to display the respective student’s date of birth when the student’s name is entered by the user. For example;

Inside the text file, student name and date of birth are stored in the following format:

Ms Cynthia : 12/04/1992
Mr Jack : 10/03/ 1990

解决方案

You should first need code to parse the stored/updated text file. Check this link

http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx#Y0[^]

By using this you can create a map/hashtable of name and DOB.

Then once user enters name you can get his DOB and show it


simply search file handling in google and create string and then store it ...


这篇关于创建Windows应用程序,以在用户输入学生的姓名时显示相应学生的生日.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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