Search:

Type: Posts; User: PuKa

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    851

    uhm, thanks bros. god bless you! happy new year...

    uhm, thanks bros. god bless you! happy new year 2012.
  2. Replies
    8
    Views
    851

    About three hours ago i tried to send this reply:...

    About three hours ago i tried to send this reply:

    #include <stdio.h>
    #include <stdlib.h>
    typedef int element_type;
    typedef struct node* node_ptr;
    struct node {
    element_type element;
    ...
  3. Replies
    8
    Views
    851

    so, L->head = NULL means head is NULL or head...

    so, L->head = NULL means head is NULL or head points to NULL ??
  4. Replies
    8
    Views
    851

    problem about allocate memory in C

    i've just made this code:

    typedef struct node *node_ptr;
    struct node {
    element_type element;
    node_ptr next;
    node_ptr prev;
    };
    struct list_record {
    node_ptr head;
  5. I got it. thanks very much grumpy.

    I got it. thanks very much grumpy.
  6. Problem about use an array of pointer-to-member-function?

    i writes a test and get trouble, sure. but i don't understand to fix it. please show me why? thank you.


    #include <iostream>
    #define CALL_MEMBER_FN(object, ptrToMember) ((object).*ptrToMember))...
  7. Thanks so much for your helps. Elysia and Elkvis.

    Thanks so much for your helps. Elysia and Elkvis.
  8. Implement a Callback to a static C++ Member Function ?

    Hi everyone, it's hard days to understand deeper about function pointer, now i get trouble with that, i need your help, and i very pleasure to know what's wrong i've made. thanks a lot.


    #include...
  9. Oh, god, that's supprise! :redface: . Thanks much...

    Oh, god, that's supprise! :redface: . Thanks much and more.
  10. Callback function in C, but problem with rand() and srand() function

    i've just write a code test, but rand() and srand() seem not to be work. Please show me what happens! :rolleyes:. thanks a lot.


    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    int...
  11. It's work, thanks very much.

    It's work, thanks very much.
  12. function pointer inner member function of class C++

    Hi, i've got problem with function pointer, the program crash when i try to run, compiler is OK (gcc version 4.3.2). thanks a lot for any helping.:rolleyes:


    #include <iostream>
    class one {...
  13. Replies
    14
    Views
    2,401

    I think *x = 10 is illegal too, x is a const...

    I think *x = 10 is illegal too, x is a const pointer points to const, so can't modify value that x points to through *x.
  14. Replies
    14
    Views
    2,401

    yes, it's basically, but... i did not understand...

    yes, it's basically, but... i did not understand it. thanks much.
  15. Replies
    14
    Views
    2,401

    *x = new const int*; // no error *x = new int*;...

    *x = new const int*; // no error
    *x = new int*; // error

    **x = new int; // no error
    **x = new const int; // error

    i've just wanted to ask why i declares *x = new const int*; is OK while **x =...
  16. Replies
    14
    Views
    2,401

    1. i still don't understand, as you said and...

    1. i still don't understand, as you said and error compile i didn't initialize a value to ensure has got a memory area is allocated and initialized, but how can i do two jobs in the same time?
    ...
  17. Replies
    14
    Views
    2,401

    const int*** x; x = new const int**; // if i...

    const int*** x;
    x = new const int**; // if i use this statement x = new int**; // error: invalid conversion from 'int***' to 'const int***' , ok i understand this.
    *x = new const int*; // the...
  18. Replies
    14
    Views
    2,401

    No, i mean why *x = new const int*; has 'const'...

    No, i mean why *x = new const int*; has 'const' if not error occur , **x = new int; hasn't 'const' if has error occur.

    sorry for my description.
  19. Replies
    14
    Views
    2,401

    different between const int*** and int** const

    i've continues test come around multi-level pointers, and got trouble too:

    int main() {
    const int*** x;
    x = new const int**;
    *x = new const int*;
    **x = new int;
    // const pointer
    ...
  20. Thanks a lot. i understood, really beautiful , i...

    Thanks a lot. i understood, really beautiful , i feels crazy now.
  21. Dose nobody help me?. this code is just i want to...

    Dose nobody help me?. this code is just i want to test about multi-level pointer, i'm sorry about my bad english, but i really spent a lot of time for this problem. thanks a lot.
  22. Alocates allocation memory for a multi-level pointers

    good evening everybody, when i try to understand deep about constant pointer, pointer to constant, raise on with multi-level pointer, i got trouble.

    #include <iostream>
    using namespace std;
    int...
  23. Access is denied when i try to click on...

    Access is denied when i try to click on "Profile". That's annoying, another way i registry a new account names puka :). Th@nks for reply.
Results 1 to 23 of 23