There is s silly mistake in my code, i cannot find it for the life of me. As of right now it only returns the area as 0, which i take to mean it isn't receiving the input of length and width? Any help would be greatly appreciated.
Building of what Hippogriff said either use the return value or pass by reference, i.e., void getWidth(double& width). This way when you change thee value of "width" or length" in the function it will be changed back in main.
Lines 16 and 17 should look like line 18 unless you pass by reference then no return value is needed and the function call will as you have written it.