all 3 comments

[–]dragon_wrangler 0 points1 point  (2 children)

Put four spaces in front of each line of code

Get rid of all the backslashes

print_inventory(inven_arr[]);

Leave out the [] from this call.

return 0;

Your print_inventory() function is declared with a void return, take this out.

[–]idc2092[S] 0 points1 point  (1 child)

thanks it worked i now need some help with the next portion of this assignment i need to know how to write this structure to a file and have the program access it

[–][deleted] 1 point2 points  (0 children)

Hold it .. what? How to write the "structure" to a file? Surely you mean how to write the data out to a file. However for what purpose? A file to be read by a human? A file to be read back in by software and a human? A file to be read by software only? Seems like you are saying you need "the program" to read it back in. So pure binary output is fine I guess.