Search:

Type: Posts; User: smokedragon

Search: Search took 0.00 seconds.

  1. you only get memory leaks if you forget to delete...

    you only get memory leaks if you forget to delete unnecessary pointers.
  2. Replies
    5
    Views
    1,175

    prototype? i don't follow.

    prototype? i don't follow.
  3. Replies
    5
    Views
    1,175

    here is the shape class:...

    here is the shape class:
    ***********shape.h*********
    class Shape
    {
    public:
    Shape();
    };
    ***********shape.cpp**********
    #include "shape.h" // for Shape class
  4. Replies
    5
    Views
    1,008

    it is a pointer. it creates an object that points...

    it is a pointer. it creates an object that points to another object. it has no real value.
  5. Replies
    5
    Views
    1,175

    Need help with error message!

    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) :...
  6. first of all, I know that temp does not work and...

    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...
  7. Need help with simple overloaded functions and pointers

    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...
  8. Replies
    2
    Views
    2,272

    I wish you could include more descriptions with...

    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++)
    ...
  9. thanks. that was driving me nuts.

    thanks. that was driving me nuts.
  10. Thread: CIN.get

    by smokedragon
    Replies
    5
    Views
    1,285

    if you're reading from a file you need to make it...

    if you're reading from a file you need to make it

    ifstream fin;

    fin.open(filename);

    fin.get(charName);
  11. I need help with my vertical bar graph program.

    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...
Results 1 to 11 of 11