Wow, that was many replies!
I must have forgotten to ask for getting e-mail when there are replies in this thread, since I haven't gotten any mail and there's been a lot of activity!
Shall start...
Type: Posts; User: coins
Wow, that was many replies!
I must have forgotten to ask for getting e-mail when there are replies in this thread, since I haven't gotten any mail and there's been a lot of activity!
Shall start...
So I have made my first class.
It calculates the area of a triangle from the position of the vertices.
I was wondering if it is possible to have only one variable, and not three (ver1, ver2,...
Jim: Ok. Seems like a more practical route. However, for learning purposes, it was a little fun creating that program, as it made me understand more about pointers.
Elysia: Funny you should...
jimblumberg:
I forgot to answer your question about considering vectors. The answer is that I haven't, but that's just because I don't have knowledge about them at this point.
From a quick search...
jimblumberg:
That was it!
With your suggestion the program works fine!
Thank you!
Too me it seems strange that my program would print pointer elements of deleted pointers.
I guess and hope...
I have a new problem with this program.
The first values of the pointer containing the first column is wrong!
It seems to me that the problem has to do with me treating the pointers wrong in some...
Guest: I just found out (responded in the same minute above you). Thanks for helping!
Update:
I seems like I need two "size"-pointers, one for the x-pointer and one for the y-pointer.
Now it seems to work.
Hello all!
This is my first post on this board. I'm reading "Jumping ..." now, and I have some trouble with chapter 14 about pointers.
I have tried making my own version of the program...