Your views

Programming, for all ages and all languages.
Post Reply
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Your views

Post by rich_m »

I have been given a simple assignment, quoted below, and finished working it out.
Write a C program that would create employee data for 100 employees.
Each employee should have a name, ecode, age and department details.
Don't use a programmatic initialization. Instead, it should be
possible to provide these values as keyboard input either directly
or through indirection.

It should be possible to query on either name or ecode and get
complete details about the employee.
I would like to know how each of u would have solved the above, i.e. your approach.

PS: we are not allowed to ask our teacher anything regarding the question
imagination is once limit......
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Post by rich_m »

Can I make my program find out it the input is from re direction or through keyboard?
imagination is once limit......
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

rich_m wrote:Can I make my program find out it the input is from re direction or through keyboard?
man isatty
Post Reply