Search:

Type: Posts; User: homeyg

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds; generated 40 minute(s) ago.

  1. Thread: Reading Data

    by homeyg
    Replies
    7
    Views
    1,534

    Screw vectors - manage your own memory and make a...

    Screw vectors - manage your own memory and make a function that dynamically resizes an array and use that.

    I don't believe in using all the standard template library crapola until you understand...
  2. Replies
    16
    Views
    1,999

    That would do nothing because the action would...

    That would do nothing because the action would never be executed.
  3. Replies
    7
    Views
    3,155

    class MyClass { private: UCHAR...

    class MyClass
    {
    private:
    UCHAR m_ucState;
    BOOL (*m_myStateHandlers[3])(void);
    public:
    MyClass();
    BOOL HandleState();
    BOOL HandleState_1();
    BOOL HandleState_2();
  4. Replies
    16
    Views
    1,999

    Well I wouldn't ever see a need for ...

    Well I wouldn't ever see a need for


    for(;;);

    but maybe for something like this


    for(int i = 0; i<MAX; cout<<array[i++]<<endl)
    ;
  5. Replies
    25
    Views
    3,606

    Dev-C++ won't compile when you use funcPtr =...

    Dev-C++ won't compile when you use


    funcPtr = Blah::func;

    or


    myClass.*funcPtr(blah);
  6. Replies
    16
    Views
    1,999

    Blank statements are sometimes necessary.

    Blank statements are sometimes necessary.
  7. Thread: template woes

    by homeyg
    Replies
    6
    Views
    1,247

    Here's so the gurus can read the code: ...

    Here's so the gurus can read the code:


    template <typename Ret, Ret (torrent::Download::*func)()> void call()
    {
    (m_download.*func)();
    }
  8. Replies
    25
    Views
    3,606

    We're talking about member functions for classes,...

    We're talking about member functions for classes, so C is irrelevant.
  9. Replies
    25
    Views
    3,606

    Yeah if you put the parentheses around the...

    Yeah if you put the parentheses around the dereferenced pointer in the call, it works.
  10. Replies
    25
    Views
    3,606

    I'm still getting an error: #include...

    I'm still getting an error:


    #include <iostream>

    using namespace std;

    class CStuff
    {
    public:
  11. Replies
    25
    Views
    3,606

    Okay.

    Okay.
  12. Replies
    25
    Views
    3,606

    Lemme complete this for you (this is how you...

    Lemme complete this for you (this is how you would use it):


    CStuff stuff;

    Pointer myFuncPtr = CStuff::Method;

    stuff.myFuncPtr(5);
  13. Thread: little help

    by homeyg
    Replies
    12
    Views
    1,054

    Repeat after me: a b c d e f g h i j k l m n o...

    Repeat after me:

    a b c d e f g h i j k l m n o p q r s t u v w x y z

    Now try to say this:

    c a t

    BTW, what you are trying to do (by what you said) and what your source code shows has...
  14. Replies
    4
    Views
    1,238

    templated classes

    When defining a function for a templated class, is the part in bold necessary in the function header?


    template <class mytype> void myclass<mytype>::myfunct(int, int)
    {
    //blah
    }
  15. Replies
    4
    Views
    1,414

    You need to learn some damn formatting. Also,...

    You need to learn some damn formatting.

    Also, you demonstrate a common problem with most programming noobs in which you rely on too many numbers and beat around the bush using those numbers, and...
  16. Thread: Question

    by homeyg
    Replies
    7
    Views
    1,098

    Please give up at life now.

    Please give up at life now.
  17. Replies
    28
    Views
    3,808

    Dude, indentation doesn't mean crap so why tell...

    Dude, indentation doesn't mean crap so why tell the dude that it does?

    Why not explain why that code does what it does?
  18. Like 20 people already said the same thing before...

    Like 20 people already said the same thing before you so shut up!
  19. Thread: Pointer help

    by homeyg
    Replies
    7
    Views
    1,106

    I almost laughed out loud when I read that! If...

    I almost laughed out loud when I read that!

    If you're simply just trying to return a pointer to something, and cast that return value to some other type of pointer, just return a pointer to void...
  20. Replies
    19
    Views
    2,699

    double post

    double post
  21. Replies
    19
    Views
    2,699

    Please stop trying to screw with people.

    Please stop trying to screw with people.
  22. Thread: conditional

    by homeyg
    Replies
    9
    Views
    2,173

    The condition in the while will never be reached...

    The condition in the while will never be reached because nothing ever sets the flag to true in that function.

    Salem hit the nail on the head; please go read a good book on the C language, and then...
  23. "0" would actually represent the address of that...

    "0" would actually represent the address of that string and it is complaining because you are trying to assign the address of that string to a char variable when that variable isn't char*.
  24. Replies
    8
    Views
    2,431

    umm, learn the Win32 API? (Make some real Windows...

    umm, learn the Win32 API? (Make some real Windows programs.) That's the only way I can think of..

    Other than that, if the code is too big for your liking to go in main(), just put it in a function...
  25. Thread: C Structure

    by homeyg
    Replies
    8
    Views
    1,115

    struct book { int page; float price; }b[3]; ...

    struct book
    {
    int page;
    float price;
    }b[3];

    This is correct. It's just the sytax for declaring objects of the struct immediately.
Results 1 to 25 of 209
Page 1 of 9 1 2 3 4