请帮助我的菜单代码 [英] Please help with my menu code

查看:95
本文介绍了请帮助我的菜单代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我在尝试编写某个程序时遇到问题,并想知道你是否可以提供帮助。它在调试文件夹中使用.txt文件形式的地址簿。文本文件包含:姓氏和名字,地址和邮政编码的两行,电话号码,出生日期,电子邮件地址。

我需要创建一个程序,通过姓氏来搜索这个数据文件,然后显示联系人的详细信息。同样在出生日期之前进行回溯并显示所有联系人在特定月份的生日。



我使用的是Microsoft visual basic 2010 express





这是.txt文件:

杰克逊萨曼莎,2 Heather Row,贝辛斯托克,RG21 3SD,01256 135434,23 / 04/1973,sam.jackson @ hotmail.com

Vickers Jonathan,18 Saville Gardens,Reading,RG3 5FH,01196 678254,04 / 02/1965,the_man @ btinternet.com

Morris Sally,The Old Lodge,Hook,RG23 5RD,01256 728443 ,19/02/1975,smorris @ fgh.co.uk

Cobbly Harry,345 The High Street,Guildford,GU2 4KJ,01458 288763,30 / 03/1960,harry.cobbly @ somewhere。 org.uk

Khan Jasmine,36 Hever Avenue,Edenbridge,TN34 4FG,01569 276524,28 / 02/1980,jas.khan @ hotmail.com

Vickers Harriet, 45 Sage Gardens,Brighton,BN3 2FG,01675 662554,04 / 04/1968,harriet.vickers @ btinternet.com




所有帮助都很高适用。

谢谢 - 康纳。

Hi all

I am having trouble trying to code a certain program and wondered if you could help. It uses an adress book in the form of a .txt file in the debug folder. The text file contains: a surname and first name, two lines of the adress and post code, a telephone number, date of birth, email adress.
I need to create a program to search this data file by surname to retrive and display the details for a contact. Also by date of birth to retrive and display all contacts with a birthday in a particular month.

I am using Microsoft visual basic 2010 express


Here is the .txt file:
Jackson Samantha,2 Heather Row,Basingstoke,RG21 3SD,01256 135434,23/04/1973,sam.jackson@hotmail.com
Vickers Jonathan,18 Saville Gardens,Reading,RG3 5FH,01196 678254,04/02/1965,the_man@btinternet.com
Morris Sally,The Old Lodge,Hook,RG23 5RD,01256 728443,19/02/1975,smorris@fgh.co.uk
Cobbly Harry,345 The High Street,Guildford,GU2 4KJ,01458 288763,30/03/1960,harry.cobbly@somewhere.org.uk
Khan Jasmine,36 Hever Avenue,Edenbridge,TN34 4FG,01569 276524,28/02/1980,jas.khan@hotmail.com
Vickers Harriet,45 Sage Gardens,Brighton,BN3 2FG,01675 662554,04/04/1968,harriet.vickers@btinternet.com


All help would be highly appriciated.
Thanks - Conor.

推荐答案

我会:

  • 解析文件(很简单,读一行时间并使用String.Split来检索其不同的字段值。)
  • 存储解析的数据库内的信息并使用此类数据库进行搜索等...
  • 维护此类数据主内存(如果可行)并使用它执行seraching操作。


这篇关于请帮助我的菜单代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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