Solved

simple arrays and pointers

Posted on 1998-11-06
2
192 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Test against App 49 129
Adjust Mfcapp 29 154
First character of input string truncated with scanf 3 85
Want to delete all my personal data 13 127
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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 and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

708 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

17 Experts available now in Live!

Get 1:1 Help Now