you only get memory leaks if you forget to delete unnecessary pointers.
Type: Posts; User: smokedragon
you only get memory leaks if you forget to delete unnecessary pointers.
prototype? i don't follow.
here is the shape class:
***********shape.h*********
class Shape
{
public:
Shape();
};
***********shape.cpp**********
#include "shape.h" // for Shape class
it is a pointer. it creates an object that points to another object. it has no real value.
I am trying to call a constructor from the class RightTriangle, but i get the following error messages:
client.cpp(14) : error C2065: 'RightTriangle' : undeclared identifier
client.cpp(14) :...
first of all, I know that temp does not work and the delete means nothing right now. i want data to point to an array of integers and MString s1 has already been defined.
I need another way to...
I am stuck on this part that i am posting. It's just eating me alive. I am trying to make the private pointer data == a given string, but nothing i try works. I have provided the functions needed to...
I wish you could include more descriptions with your code. It would be easier to follow.
you only need one 2-D array and 4 loops.
triangle[0][0]=1;
for(int a=1; a<size; a++)
...
thanks. that was driving me nuts.
if you're reading from a file you need to make it
ifstream fin;
fin.open(filename);
fin.get(charName);
I know it's simple but I am missing some element. The graphs don;t come out in a column. Please if someone could point me in the right direction. You need a text file to test it.
#include...