i want to write a program that can process a binary file that is being supplied
the file contains some number of the following struct type
Expand|Select|Wrap|Line Numbers
- # define dim 1024
- typedef struct
- {
- int ival;
- char clist[dim];
- double dval;
- }
- data_t;
the program must report
the no of data_t structs in the file
the sum of all ival members
the sum of all dval numbers
by making use of cstdlib function
it will be helpful for me
thanks
mano