thanks all, I think I understand a bit better how it works now.
Type: Posts; User: RicOz6
thanks all, I think I understand a bit better how it works now.
This is supposed to be a basic programme to see how malloc works, it compiles and runs giving the correct output but then I get "DEBUG error, heap corruption detected" and I don't understand what...
sorry, weight/height^2
it's height/weight^2 apparently so that's probably the problem and I'll try using a loop for the output, I only started programming yesterday so it's all pretty new at the moment.
Hi, I'm trying to write a program that works out BMI from inputted height and weight, it all works fine but the calculation for bmi doesn't do anything and I don't understand why.
#include...