Hammad Imad
2004-01-23 04:06:09 UTC
i used the function "gets" in my program and once making the file, it says
gets is a dangerous function and should not be used.
I asked the prof about it, he said that he was aware that it produces a
warning and we shouldnt worry about it but not an error.He did say he
wuld get back to me but i havent had a class with him since.
So does anyone know how to fix that
My other problem is with the integration lab part.In the functions a
pointer *P to the array is passed. Im not sure if im operating on it
properly.i am typing
answer+= P[i] * power;
is the way im referencing P incorrect? is that why my program isnt
working or no?
Thank you very much
gets is a dangerous function and should not be used.
I asked the prof about it, he said that he was aware that it produces a
warning and we shouldnt worry about it but not an error.He did say he
wuld get back to me but i havent had a class with him since.
So does anyone know how to fix that
My other problem is with the integration lab part.In the functions a
pointer *P to the array is passed. Im not sure if im operating on it
properly.i am typing
answer+= P[i] * power;
is the way im referencing P incorrect? is that why my program isnt
working or no?
Thank you very much