Solved

simple arrays and pointers

Posted on 1998-11-06
2
193 Views
Last Modified: 2010-04-15
Pls help with this project i have to do! Thanx
this is the main menu screen
-------
A student Tracking system
        Main Menu
1. Create Student record (Student ID, Name, Address, Telephone)
2. Enquiry
3. Delete Record

Choice :
--------
Qn 1) Implement above system using Array of records (static data structure)
Qn 2) Implement above system using Pointers (Dynamic Data Structure)

Must use files to store min 10 records permanently
files can be shared by pointers and array
0
Comment
Question by:wilddream
2 Comments
 
LVL 2

Expert Comment

by:kellyjj
ID: 1254090
This isn't really the place to get other people to do your homework.  You should try to do this yourself, then ask questions related to to code,
0
 
LVL 3

Accepted Solution

by:
arnond earned 130 total points
ID: 1254091
here are some "pointers" for you:
1) staticlly : use an array of a pre-determined size.
2) dynamiclly: use some sort of linked-list.
both methods should use a structue to hold the students info.
as for the files:
* use a counter to see how many students are in your system and don't delete if its <= 10.
* you can use the files for both versions, it's onlt raw data which you need to read at the beginning of your program.

and don't forget, EE is a place you can get help, not get your homework done for you.

Good luck,
Arnon David.
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now