Search:

Type: Posts; User: Arlenik

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,909

    This world is full of games. How about something...

    This world is full of games. How about something useful? Do you have one of those graphing calculators that can solve algebra equations (TI 89)? Write a program that will do just that. say you...
  2. Replies
    10
    Views
    1,409

    My apologies everyone. I've been talking to some...

    My apologies everyone. I've been talking to some Qt programmers, and I've realized that I posted a really bad example. I'm reading a book on programming with Qt4, and I was trying to understand a...
  3. Replies
    10
    Views
    1,409

    Pointers without allocation

    Hello,


    class foo{
    public:
    void fun(){ /* do something */ };
    };

    int main(){
  4. Replies
    27
    Views
    3,486

    Ahhh, finally, I get it. Somewhere (my guess is...

    Ahhh, finally, I get it. Somewhere (my guess is show() ) in the base class there is a call to paintEvent() in the form of 'this->paintEvent()'.

    To my original example, it would look something...
  5. Replies
    27
    Views
    3,486

    I guess you could say it like that too, but would...

    I guess you could say it like that too, but would you not agree that MY paintEven() in mBut gets called without me having to call it? All I've done is re reimplement the paintEvent() in my derived...
  6. Replies
    27
    Views
    3,486

    I hear you, but to me it doesn't matter if...

    I hear you, but to me it doesn't matter if paintEvent() in QPushButton and QWidget also get called. I just want to know how my painEvent() gets called. This to me is more of a C++ question than...
  7. Replies
    27
    Views
    3,486

    what are you talking about? we are trying to...

    what are you talking about? we are trying to figure out how painEvent() in the derived class gets called automatically.
  8. Replies
    27
    Views
    3,486

    Here is a real-world example of how this is done,...

    Here is a real-world example of how this is done, and I need to understand how it's done. If you have used Qt before then this code should make sense.



    #include <QApplication>
    #include...
  9. Replies
    27
    Views
    3,486

    I'm going to ignore 'x.Foo();' cause there is no...

    I'm going to ignore 'x.Foo();' cause there is no need for it. The expected output of your could would be:


    Base::Fun()
    Derived::Fun()
    FurtherDerived::Fun()


    The Base class is implemented...
  10. Replies
    27
    Views
    3,486

    Yes, I did, but I guess you didn't read my post. ...

    Yes, I did, but I guess you didn't read my post. Base::Fun() or Derived::Fun() never get called in the Derived class. So, you're example is the opposite of what I want to do.
  11. Replies
    27
    Views
    3,486

    class Base{ protected: virtual void Fun(); ...

    class Base{
    protected:
    virtual void Fun();

    /* Base::Fun() gets called somewhere. There is also code to make sure all the Fun() in derived classes are called too. */
    };

    class Derived :...
  12. Replies
    27
    Views
    3,486

    It is virtual.

    It is virtual.
  13. Replies
    27
    Views
    3,486

    Auto Calling Derived Fun

    Hello,
    say I have a base class that has a virtual function called Fun(). What do I have to do in my base class to make sure that all the Fun() functions in the derived classes are automatically...
  14. Replies
    8
    Views
    1,586

    I can't post the error cause it's too big. The...

    I can't post the error cause it's too big. The program that I'm trying to convert to c++ is called Flam3.
  15. Replies
    8
    Views
    1,586

    The code I posted compiles both wit h gcc and...

    The code I posted compiles both wit h gcc and g++. The program that I'm converting won't compile (gcc) if I remove the typedef line.

    What's the easiest way to convert C to C++ if you don't know C?
  16. Replies
    8
    Views
    1,586

    Help: Convert C to C++

    Hello,
    I'm trying to convert a program from C to C++.


    #define RANDSIZL (4) /* I recommend 8 for crypto, 4 for simulations */
    #define RANDSIZ (1<<RANDSIZL)

    /* context of random number...
Results 1 to 16 of 16