Re: Redirecting input from file
On Jul 3, 2:12 pm, "Army1987" <please....@for .itwrote:
I am compiling with gcc on Linux. As for the results of the runs, my
boss ran the program that I wrote and the output looks like it's OK. I
will admit that I've not dealt with arrays since I took a class in C
in 2004. I still have my notes and books from that class and just did
it the way the book and notes told me. The notes are also online at
cs1313.ou.edu if you want to check them out.
Dave
On Jul 3, 2:12 pm, "Army1987" <please....@for .itwrote:
<dmora...@cox.n etha scritto nel messaggionews:1 183473735.07644 0.202070@k29g20 00hsd.googlegro ups.com...
[snip code which casts the result of malloc]I also tried to remove the casts and it didn't run.
>
Are you compiling it with a C++ compiler?
(If so, I'd be surprised of knowing free() works even without
casting the argument to void*).
[snip code which casts the result of malloc]I also tried to remove the casts and it didn't run.
>
Are you compiling it with a C++ compiler?
(If so, I'd be surprised of knowing free() works even without
casting the argument to void*).
boss ran the program that I wrote and the output looks like it's OK. I
will admit that I've not dealt with arrays since I took a class in C
in 2004. I still have my notes and books from that class and just did
it the way the book and notes told me. The notes are also online at
cs1313.ou.edu if you want to check them out.
Dave
Comment