Thread: Let me introduce myself and please help my project

  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    2

    Let me introduce myself and please help my project

    Let me introduce first since I'm a new member~
    Hello, I'm Lia from Indonesia and now I'm on my first year in Biomedical Engineering Department. I think that's enough

    Then, now I've to do my final project for this semester. The things that I must do is make a hospital database. first of all, when a new patient wants to make their database, they must input their ID number, name, and dob. then, each data of each patient will be saved in separate files which are each file will be named by the ID number.

    Then, when one patient wants to search their own data, the program will give an option:
    1. search by the id number
    2. search by name and dob

    and after that, the program will open the file from before.

    so, here my question..
    if the patient took the second option, so how to programme the program so it could find the data? I've thought that I must make a big data which it will contain all patient's names, ID number, and dob. but I've no idea what should I do after that.

    is there a kind person that will help me here??
    and sorry for my lack of English

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by Aulia Az Zahra View Post
    I've thought that I must make a big data which it will contain all patient's names, ID number, and dob. but I've no idea what should I do after that.
    When you get the name and dob, open the file that contains all user information, search each entry until you find a match, and get the ID number from that entry. Then use the ID number to open the specific file of interest.

  3. #3
    Registered User
    Join Date
    Dec 2017
    Posts
    2
    Quote Originally Posted by Matticus View Post
    When you get the name and dob, open the file that contains all user information, search each entry until you find a match, and get the ID number from that entry. Then use the ID number to open the specific file of interest.
    I've learn how to get something same as the input, so i understand how to do the half step. but, how to get the id number on the entry??

  4. #4
    Registered User
    Join Date
    Oct 2017
    Posts
    36
    From your explanation i think you only have a scanty idea of what it is you want to achieve. Try to carry out some more research on what it is you want to achieve before you write your first line of code. caring out a research up front saves you a lot of work, time and energy. When this is done properly you will get more detailed help from forum members because will be so clear what it is you want to achieve. I may be wrong but this is what i think you need to do first.

  5. #5
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by Aulia Az Zahra View Post
    I've learn how to get something same as the input, so i understand how to do the half step. but, how to get the id number on the entry??
    For each patient entry, read the name, dob, and ID number into separate variables. If the "name" and "dob" variables match the input, then the value in the "ID" variable is the one you want.

  6. #6
    Registered User
    Join Date
    Feb 2014
    Posts
    30
    Are you storing the patient data in a text file or a database? If you use a database, your question is easily answered.

    If you are using a text file to store the data, you might want to consider how many patients total this system will store. Searching through a text file for data in small numbers isn't horrible, but if your patient list is continually expanding (no limits), then a text file will slowly start to degrade the performance of your program.

  7. #7
    Banned
    Join Date
    Aug 2017
    Posts
    861
    sounds like a struct array that is referenced by the id number. just saying.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 08-02-2013, 06:45 PM
  2. Introduce my programming language & compiler
    By blackoil in forum Projects and Job Recruitment
    Replies: 8
    Last Post: 06-29-2012, 10:31 PM
  3. Introduce Myself
    By Apathy in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 12-10-2004, 02:40 PM
  4. ...just thought I would introduce my self...
    By GGrrl in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-24-2003, 11:03 AM
  5. your 11th & 12th grade c++ project or similar project
    By sleepyheadtony in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-13-2002, 05:14 PM

Tags for this Thread