Search:

Type: Posts; User: Bill83

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: C++ Gui

    by Bill83
    Replies
    15
    Views
    2,361

    Thanks everyone you've been a great help.

    Thanks everyone you've been a great help.
  2. Thread: C++ Gui

    by Bill83
    Replies
    15
    Views
    2,361

    C++ Gui

    Hello,

    I don't know if this is the place to ask this question, so please let me know. I developed my own CAD tool and the code is all written in C++. There is nothing graphic about it. I'm just...
  3. Replies
    14
    Views
    3,165

    Thank you citizen (and the rest of you). You have...

    Thank you citizen (and the rest of you). You have all been a great help.
  4. Replies
    14
    Views
    3,165

    Thank you guys for all your help. Unfortunately I...

    Thank you guys for all your help. Unfortunately I still don't understand why it is not working. I did start out as programming a vector class for double, then I changed it to a template. In the...
  5. Replies
    14
    Views
    3,165

    But just out of curiosity, how do I include...

    But just out of curiosity, how do I include vector as a data member if I don't have anywhere to use it in the class definitions?
  6. Replies
    14
    Views
    3,165

    This is actually the first time I ever programmed...

    This is actually the first time I ever programmed with templates, so obviously I didn't get the whole picture. I think I'll just get rid of the vector class altogether and just create a dynamic array.
  7. Replies
    14
    Views
    3,165

    left operand must be l-value

    Hello,

    I am having trouble with the error message in the title: "Left operand must be l-value." I created a template class as follows:



    template <class T>
    class vector
    {
    T *ptr;
  8. Replies
    4
    Views
    1,107

    Thanks. I'll let you know how it works.

    Thanks. I'll let you know how it works.
  9. Replies
    4
    Views
    1,107

    I thought eof() was the end-of-file condition. I...

    I thought eof() was the end-of-file condition. I need something to check if you reached the end of a line.
  10. Replies
    4
    Views
    1,107

    end of line command

    Hi all,

    I was wondering if, when reading from a file, there is a way (or an algorithm) to check if you reached the end of a line.

    Thanks.
  11. Thread: Moving mouse

    by Bill83
    Replies
    1
    Views
    1,237

    Moving mouse

    Hi all,

    I just have a simple question: does there exist a command to move the mouse pointer on the screen without physically moving the mouse (e.g. put it at center position)?

    Thanks.

    Bill
  12. Replies
    6
    Views
    1,071

    Got it. Thanks for that.

    Got it. Thanks for that.
  13. Replies
    6
    Views
    1,071

    Ok I get it. So you're saying that you need to...

    Ok I get it. So you're saying that you need to delete your memory to keep your program running smoothly? And say that, just as in your example, you forget to delete and the program becomes very slow...
  14. Replies
    6
    Views
    1,071

    Automatically? If that's the case, why is it so...

    Automatically? If that's the case, why is it so important to use delete?
  15. Replies
    6
    Views
    1,071

    new and delete keywords

    I have a small question. If you use the new keyword but forget to delete, I know that there exists unfreed occupied space in the heap. Does that unfreed space remain that way forever, or is there a...
  16. Replies
    31
    Views
    3,025

    I FINALLY GOT IT!!! Turns out the problem was...

    I FINALLY GOT IT!!! Turns out the problem was with the general constructor: I forgot to assign values for the individual data members (row, col, and empty). For some reason, after assigning the...
  17. Replies
    31
    Views
    3,025

    Sorry about the last comment. I forgot to close...

    Sorry about the last comment. I forgot to close to code tag
  18. Replies
    31
    Views
    3,025

    Turns out it is not printing at all. I tried...

    Turns out it is not printing at all. I tried using both the assignment operator and the copy constructor, but nothing works. It basically is never outputting to the screen. I am doing



    Matrix...
  19. Replies
    31
    Views
    3,025

    Sorry if I didn't mention this before, but yes I...

    Sorry if I didn't mention this before, but yes I did run both your examples and I did get the same output. I am using Microsoft Visuall C++ 6.0.
  20. Replies
    31
    Views
    3,025

    After chaning the overloaded assignment operator,...

    After chaning the overloaded assignment operator, I tried to redo everything as before (i.e. passing by const reference, etc.), but it is still not outputting. ARRRRRGH!!!!
  21. Replies
    31
    Views
    3,025

    You're definately right. Here is the corrected...

    You're definately right. Here is the corrected version:



    Matrix Matrix::operator=(const Matrix &another)
    {
    //clearing heap
    if(!empty)
    {
    for (int i=0; i<row; i++)
  22. Replies
    31
    Views
    3,025

    Thanks all. My head is going to explode. I...

    Thanks all. My head is going to explode. I actually didn't expect you to stay that long on the topic. Anyway, I think I'll call it a night. Tomorrow's another day.
  23. Replies
    31
    Views
    3,025

    Sure. Here is the whole header file: ...

    Sure. Here is the whole header file:



    //#include "Complex.h"

    class Matrix
    {
    int row,col;
    Complex **A;
  24. Replies
    31
    Views
    3,025

    Ok so apparently the destructor IS called before....

    Ok so apparently the destructor IS called before. That is not my worry anymore I guess. But why is it not outputting to the screen with my Matrix class?
  25. Replies
    31
    Views
    3,025

    Wow thank you guys for going through all that...

    Wow thank you guys for going through all that trouble. In my Complex class, it all works similarly. It is only my Matrix class that's giving me trouble. In case you want to compare the ostream...
Results 1 to 25 of 64
Page 1 of 3 1 2 3