Calling a Function in a class?

Posted 03 December 2012 - 05:35 PM

Would anybody be able to explain to me how I would call my functions in my class from my main, cause currently my only function that is displaying to the screen is my main. I know how to call a function normally but classes are new to me.

the construct calls getData(), which by its name implies that it should get some data. But the problem is you have no data yet! And you are passing two arguments which contains nothing, and are used in the getData() function... Are you getting the point?

Now I have put comments in the code....
This setup uses the * operator this is good for a dynamic memory solution
but it requires a malloc to allocate memory.
if the size of the array is roughly known before runtime you