DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: Project Help : Where to Start?

  1. #1
    Join Date
    Jan 2008
    Posts
    37

    Question Project Help : Where to Start?

    Hello All
    I got a introductionary C++ project from my University
    Project is a student registration system, features like Add, Remove, Edit and Search


    Plz tell me where should i take a start from?
    e.g[create a ...., then read the file, and take some inputs]

    Remember iM not asking for the whole code but for the guidence
    Thanks in Advance

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Welcome to DevX

    The first place to start with any project, regardless of what language or platform will be used, is the design.

    Questions:
    You have the What you want it to do (Add, Remove, Edit and Search). The next question is, How do you want it to do it? Don't think in terms of programming code.....think in terms of functionality.

    Where will you be stored the records for this system? Flat file? Database?

    What, if any, will the reporting needs be? How should they look?

    Again, no code at all yet.....answered these questions for yourself, and then the actual coding can begin, and, in all likelyhood, will be a bit easier because you have some establshed targets.

  3. #3
    Join Date
    Jan 2008
    Posts
    37

    Smile

    Thanks for ur rapid response

    let me xplain it futher regarding ur guidelines

    [It vl be written in C++, Dos]

    1: program will store all the data in simple text file.
    2: no, it vl not have an advancd reporting function but a simple "Show all Records"
    3: user vl have 4 choices
    Add a New Student
    Edit a Student
    Search a Student
    Show all the record [copy the whole text file and output it to the screen]


    Now what vl be the next step?
    Thanks once again

  4. #4
    Join Date
    Jan 2008
    Posts
    37
    This vl my first experience to write a full fledge project, I have the basics, bt i dont know how to make it happen...Im sure, ill get Special help from you all...So ill b able to complete it b4 due date

  5. #5
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Well, you can't edit a record that doesn't exist, nor can you search for a record that doesn't exist, so I rather suspect the first thing to build would be the ability to add a record.

    How familiar are you with dealing with text files in c++?

  6. #6
    Join Date
    Jan 2008
    Posts
    37
    I have basic concepts of File Hendling in C++ using <fstream>
    i can open a file, then make a check if it is open successfully or not, then read its contents using <<, getline or getchar, the show output or write it to another file.

  7. #7
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Reading is good. That will come in handy for Edit and Search.

    What about writing to it?

    (We are not going to write your program for you, but we will be more than happy to assist you in writing it for yourself. )

  8. #8
    Join Date
    Jan 2008
    Posts
    37
    can write too, using append file flag, i can write
    [i dont know how to use advanced techniques like where to write and how]

    yeah i need ur asistanc, ill try my best to write the code, and if ill face any difficulty, im sure ull help me in my buggy code too :)

  9. #9
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Ok, good.

    Now, we are going to add a new student.

    Question: What information about each student needs to be captured.

    First Name, Last Name, for sure.

    What else?

  10. #10
    Join Date
    Jan 2008
    Posts
    37
    Student ID
    Name
    Address

    [we will search a student by ID and Name]

  11. #11
    Join Date
    Jan 2008
    Posts
    37
    so what should i do now?

  12. #12
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by manofspirit
    can write too, using append file flag, i can write
    [i dont know how to use advanced techniques like where to write and how]
    Then the next step is to open a new text file and write some names and address and Ids to it. Surely this is a topic that you have covered in your class.

  13. #13
    Join Date
    Jan 2008
    Posts
    37
    Thanks for ur Reply
    okey, i thought once again about program and clear some concepts
    let me xplain wt i hv done


    Program will have 5 functions [Add, Edit, Delete, Search, Show All]
    there will be a sample text file with 1 or 2 records in following format
    01,\tMan of Spirit,\tManchester

    When program start, it vl open this file [records.txt] using [ios::app] flag
    then "Switch" vl give 5 options
    e.g.
    Add an Account
    addaccount();
    break

    Edit
    function
    break

    Search
    function
    break

    Delete
    function
    break

    Show All
    function
    break

    Quit
    break;



    Now my questions are
    1: is abv text record layout is good? or it shud be in a different way?
    2: I can add the text in a file, but i dont know how to check that this record already exists or not?
    3: what type of statements vl be in all the above mentioned functions?


    Thanks Again

  14. #14
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by manofspirit
    1: is abv text record layout is good? or it shud be in a different way?
    If it works for you, it works for me.
    Quote Originally Posted by manofspirit
    2: I can add the text in a file, but i dont know how to check that this record already exists or not?
    We are getting ahead of ourselves. First, get the add new record routine written, debuged, and tested. Then we will move on to Editing/Searching.
    Quote Originally Posted by manofspirit
    3: what type of statements vl be in all the above mentioned functions?
    Why type of statements do you think need to be there?

  15. #15
    Join Date
    Jan 2008
    Posts
    37
    @if it works for u, it works for me too
    Sorry, I couldnt understand
    I havnt tested or implemented records like above examlpe
    should i use records like

    Example:1
    ID, Name, Address

    or

    Example:2
    ID
    Name
    Address

    which one is the best style to store data? is there any other layout style?




    @
    We are getting ahead of ourselves. First, get the add new record routine written, debuged, and tested. Then we will move on to Editing/Searching.

    Plz explain this Function in Pseudo Code, I vl try my best to code it and then ill show u for further help



    @Why type of statements do you think need to be there?
    Dont have any idea and experience, own very pathetic skillz :(, I need your guidance and support


    Plz explain what should i do now? [treat me as a student :), not as a Pro]

Similar Threads

  1. Replies: 1
    Last Post: 11-29-2006, 07:59 AM
  2. Update for AgMapthat Project Browser Plus released
    By Todd B - Agendum Software in forum vb.announcements
    Replies: 0
    Last Post: 03-31-2001, 07:12 AM
  3. Replies: 0
    Last Post: 09-13-2000, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center