Click here to Skip to main content
15,881,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help Pin
Jochen Arndt24-Sep-15 22:30
professionalJochen Arndt24-Sep-15 22:30 
GeneralRe: help Pin
robsons200725-Sep-15 10:47
robsons200725-Sep-15 10:47 
GeneralRe: help Pin
robsons200725-Sep-15 10:57
robsons200725-Sep-15 10:57 
Questionc programm Pin
Honey1724-Sep-15 9:08
Honey1724-Sep-15 9:08 
AnswerRe: c programm Pin
k505424-Sep-15 9:26
mvek505424-Sep-15 9:26 
AnswerRe: c programm Pin
CPallini24-Sep-15 9:57
mveCPallini24-Sep-15 9:57 
GeneralRe: c programm Pin
Maximilien24-Sep-15 10:17
Maximilien24-Sep-15 10:17 
QuestionFunction parameter question Pin
econy23-Sep-15 7:42
econy23-Sep-15 7:42 
C++
struct node{
    int key;
    node* head;
}

node *head = NULL;
void func(node* &h,int n, int m) 
{ 
   if(n > m) 
     return;
   else {
        int mid = (n+m)/2;
        func(h->head,n,mid-1);
        func(h->head,mid+1,m);
   }
}


I am wonder what is the difference of parameter:
func(node* &h, int n, int m)
and
func(node* h,int n, int m)

what is the usefulness of node *&h.
AnswerRe: Function parameter question Pin
David Crow23-Sep-15 7:58
David Crow23-Sep-15 7:58 
GeneralRe: Function parameter question Pin
Richard Andrew x6423-Sep-15 11:48
professionalRichard Andrew x6423-Sep-15 11:48 
GeneralRe: Function parameter question Pin
David Crow23-Sep-15 16:59
David Crow23-Sep-15 16:59 
GeneralRe: Function parameter question Pin
Richard MacCutchan23-Sep-15 21:38
mveRichard MacCutchan23-Sep-15 21:38 
AnswerRe: Function parameter question Pin
CPallini24-Sep-15 0:57
mveCPallini24-Sep-15 0:57 
Questionhelp Pin
robsons200722-Sep-15 16:17
robsons200722-Sep-15 16:17 
AnswerRe: help Pin
Richard Andrew x6422-Sep-15 18:15
professionalRichard Andrew x6422-Sep-15 18:15 
GeneralRe: help Pin
robsons200723-Sep-15 3:41
robsons200723-Sep-15 3:41 
SuggestionRe: help Pin
Richard MacCutchan22-Sep-15 21:04
mveRichard MacCutchan22-Sep-15 21:04 
QuestionCreating a thread in c Pin
mmapulac22-Sep-15 15:46
mmapulac22-Sep-15 15:46 
AnswerRe: Creating a thread in c Pin
Richard MacCutchan22-Sep-15 21:00
mveRichard MacCutchan22-Sep-15 21:00 
AnswerRe: Creating a thread in c Pin
David Crow23-Sep-15 2:34
David Crow23-Sep-15 2:34 
Questionthe drag of listview column don't work Pin
ProCodix21-Sep-15 14:59
ProCodix21-Sep-15 14:59 
AnswerRe: the drag of listview column don't work Pin
_Flaviu21-Sep-15 20:50
_Flaviu21-Sep-15 20:50 
QuestionHaving trouble with c++ templates Pin
BobInNJ21-Sep-15 12:48
BobInNJ21-Sep-15 12:48 
AnswerRe: Having trouble with c++ templates Pin
CPallini21-Sep-15 21:45
mveCPallini21-Sep-15 21:45 
QuestionCalling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Kiran Satish21-Sep-15 7:39
Kiran Satish21-Sep-15 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.