I posted this yesterday but I only got one response, I still haven't managed to fix the problem.
I can't fix this code, the program will not generate random numbers for the length and width of the rectangles. I was recently introduced to pointers so I'm not too good with them. Any help will be greatly appreciated.
Your issue comes from your setter functions. Understand when using the assignment operator ( = ) whatever is on the left is assigned the value on the right, so: arg3 = lenght;
Means that arg3 is being assigned the value of whatever lenght is (which you initialize as 0). You're not actually assigning a new value of lenght that you intended to do. Here is what you need to change it to: lenght = arg3;
You must do the same thing for width also.