kittu_phani said:
Iam very much new to C-programing.Please give the silution for
following problem.
How to read data from stdin to array ofstructures
There are many ways to do this. Depends on whether
the data is in ASCII or binary. The binary solution
may depend on Endianism.
Write a function to read in a structure. Call this
function for each structure in the array.
Structures can be read either as a whole unit or
each field read individually.
Without more information, it is hard to get more
specific. Try reading the FAQ below. If you need
help, post your code and indicate how it is failing
and where the problem is.
See also:
fread
fscanf
fgets
--
Thomas Matthews
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html