<apaticul@[EMAIL PROTECTED]
> wrote in message
> void main () {
> char first[100];
> char last[100];
> int age;
> int ssn;
> float salary;
>
> readPerson(first, last, &age, &ssn, &salary);
> writePerson(first, last, age, ssn, salary);
> }
>
> So, my question is, how would I combine all these codes in order to
> get a proper working program?
> TIA
>
Comment out everything and add printf("hello world\n") to the body of
main(). That tells you your compiler is set up correctly.
Once hello world works, comment in the smaller function, and pass it dummy
data. See if it prints the dummy data. Fiddle with it until correct.
Then turn your attention to the larger ****ntion. Try just reading in one
variable at first. Add variables and continue fiddling with it until it
works.
Eventually you end up with a working program.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm


|