[Solved] How can you use structures in modular programming?


Well, this is a problem:

fillwordnr(f,p[].ptrletter,p[].numbers,lines,nrofline,a,c,string[]);

You have to specify which element of p you want to work with – p[0], p[1], p[i], etc. Assuming nrofline is a valid index for p, you would write

fillwordnr( f, p[nrofline].ptrletter, p[nrofline].numbers, lines, nrofline, a, c, string );

Honestly, based on the code you’ve posted, it’s not clear what you’re trying to accomplish.

4

solved How can you use structures in modular programming?