Quote:
Originally Posted by FloydianOne
See the problem is that this is an assignment and the teacher sent a template, that we are to finish. And well she hard codes the definition of the array to just be a 2d array and not a array of pointers.
Since we havent learned anything about malloc or memcopy, and she says we cant change the template... Im assuming the only way I can do this is hardcoding saying element 0 = element 3 etc. etc. I plan on going to get help from the class TA tomorrow.
Thanks for your help though.... even though I havent figured out exactly how to do it, ive learned alot about pointers etc.
|
If it's just a high school assignment, then you're probably supposed to copy one array to another with a for() loop or some such.
...and I
do hope you learned somethng...