uhm, thanks bros. god bless you! happy new year 2012.
Type: Posts; User: PuKa
uhm, thanks bros. god bless you! happy new year 2012.
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;
...
so, L->head = NULL means head is NULL or head points to NULL ??
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;
I got it. thanks very much grumpy.
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))...
Thanks so much for your helps. Elysia and Elkvis.
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...
Oh, god, that's supprise! :redface: . Thanks much and more.
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...
It's work, thanks very much.
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 {...
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.
yes, it's basically, but... i did not understand it. thanks much.
*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 =...
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?
...
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...
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.
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
...
Thanks a lot. i understood, really beautiful , i feels crazy now.
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.
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...
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.