>#include< stdio.h>
should be
>#include <stdio.h>
>struct News Record { int code ;
you cannot have spaces in variable names. Suggest you use NewsRecord instead.
>void list stock (sruct NewsRecord shop[20]; int c)
Spaces again. Use liststock.
Also, what is sruct? A typo I feel (struct).
And why the semi-colon. Use a comma as a seperator.
>char title[titlelength];
the define is for Titlelength, not titlelength. Case sensativity applies.
>float whole price;
>float retail price;
More spaces in names.
....... That's it, I can't be bothered to do any more, although I'm sure there's a lot. Run it through your compiler, fix the typos etc, then post again if you are still having trouble.
And, use code tags when posting code.
Code:
My compilers output:
Error E2209 D:\C\junk\junk1.c 1: Unable to open include file ' stdio.h'
Error E2141 D:\C\junk\junk1.c 4: Declaration syntax error
Error E2449 D:\C\junk\junk1.c 13: Size of 'list' is unknown or zero
Error E2141 D:\C\junk\junk1.c 13: Declaration syntax error
Error E2141 D:\C\junk\junk1.c 13: Declaration syntax error
Error E2040 D:\C\junk\junk1.c 15: Declaration terminated incorrectly
Error E2141 D:\C\junk\junk1.c 15: Declaration syntax error
Error E2141 D:\C\junk\junk1.c 15: Declaration syntax error
Error E2380 D:\C\junk\junk1.c 22: Unterminated string or character constant
Error E2190 D:\C\junk\junk1.c 27: Unexpected }
Error E2450 D:\C\junk\junk1.c 28: Undefined structure 'magazine'
Error E2303 D:\C\junk\junk1.c 28: Type name expected
Error E2380 D:\C\junk\junk1.c 68: Unterminated string or character constant
Error E2190 D:\C\junk\junk1.c 80: Unexpected }
Error E2450 D:\C\junk\junk1.c 86: Undefined structure 'newsrecord' in function main
Error E2450 D:\C\junk\junk1.c 86: Undefined structure 'newsrecord' in function main
Error E2449 D:\C\junk\junk1.c 86: Size of 'shop' is unknown or zero in function main
Error E2450 D:\C\junk\junk1.c 86: Undefined structure 'newsrecord' in function main
Error E2450 D:\C\junk\junk1.c 86: Undefined structure 'newsrecord' in function main
Error E2449 D:\C\junk\junk1.c 86: Size of 'shop' is unknown or zero in function main
Error E2451 D:\C\junk\junk1.c 87: Undefined symbol 'o' in function main
Error E2141 D:\C\junk\junk1.c 87: Declaration syntax error in function main
Error E2380 D:\C\junk\junk1.c 92: Unterminated string or character constant in function main
Error E2121 D:\C\junk\junk1.c 93: Function call missing ) in function main
Error E2451 D:\C\junk\junk1.c 97: Undefined symbol 'order' in function main
Error E2228 D:\C\junk\junk1.c 97: Too many error or warning messages in function main
*** 26 errors in Compile ***