Thanks cpjust,
As I said right at the beginning of the thread...
I feel such a fool !!!
Program's now working. It reads 600 years of easters,
which I'm analysing for frequencies and repetitions.
Many thanks to All you supporters,
JimJ
Thanks, Salem.
That yrs[k][n][12] is the code I wanted.
I'd forgotten how to reference that nested array.
I'm not sure I need the arrays to be [13]
The strings are only 11 chars long.
I'll give them both a try.
I'm not so sure.
My output appears to be one long string.
I have a source-file (Dates of Easter, from a web site)
23 Apr 2000 20 Apr 2025 10 Apr 2050 7 Apr 2075
15 Apr 2001 5 Apr 2026 2 Apr 2051 19 Apr 2076
31 Mar 2002 28 Mar 2027 21 Apr 2052 11 Apr 2077
20 Apr 2003 16...
I feel such a fool.
Up till a few years ago I used to be a C Instructor.
Now my C is very rusty.
If I strcpy part of a string into an empty buffer,
how do I place a '\0' at the end of the copied data?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.