Click here to Skip to main content
15,793,260 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help Pin
Jochen Arndt24-Sep-15 23:30
professionalJochen Arndt24-Sep-15 23:30 
GeneralRe: help Pin
robsons200725-Sep-15 11:47
robsons200725-Sep-15 11:47 
GeneralRe: help Pin
robsons200725-Sep-15 11:57
robsons200725-Sep-15 11:57 
Questionc programm Pin
Honey1724-Sep-15 10:08
Honey1724-Sep-15 10:08 
AnswerRe: c programm Pin
k505424-Sep-15 10:26
mvek505424-Sep-15 10:26 
AnswerRe: c programm Pin
CPallini24-Sep-15 10:57
mveCPallini24-Sep-15 10:57 
GeneralRe: c programm Pin
Maximilien24-Sep-15 11:17
Maximilien24-Sep-15 11:17 
QuestionFunction parameter question Pin
econy23-Sep-15 8:42
econy23-Sep-15 8: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 8:58
David Crow23-Sep-15 8:58 
GeneralRe: Function parameter question Pin
Richard Andrew x6423-Sep-15 12:48
professionalRichard Andrew x6423-Sep-15 12:48 
GeneralRe: Function parameter question Pin
David Crow23-Sep-15 17:59
David Crow23-Sep-15 17:59 
GeneralRe: Function parameter question Pin
Richard MacCutchan23-Sep-15 22:38
mveRichard MacCutchan23-Sep-15 22:38 
AnswerRe: Function parameter question Pin
CPallini24-Sep-15 1:57
mveCPallini24-Sep-15 1:57 
Questionhelp Pin
robsons200722-Sep-15 17:17
robsons200722-Sep-15 17:17 
AnswerRe: help Pin
Richard Andrew x6422-Sep-15 19:15
professionalRichard Andrew x6422-Sep-15 19:15 
GeneralRe: help Pin
robsons200723-Sep-15 4:41
robsons200723-Sep-15 4:41 
SuggestionRe: help Pin
Richard MacCutchan22-Sep-15 22:04
mveRichard MacCutchan22-Sep-15 22:04 
QuestionCreating a thread in c Pin
mmapulac22-Sep-15 16:46
mmapulac22-Sep-15 16:46 
AnswerRe: Creating a thread in c Pin
Richard MacCutchan22-Sep-15 22:00
mveRichard MacCutchan22-Sep-15 22:00 
AnswerRe: Creating a thread in c Pin
David Crow23-Sep-15 3:34
David Crow23-Sep-15 3:34 
Questionthe drag of listview column don't work Pin
ProCodix21-Sep-15 15:59
ProCodix21-Sep-15 15:59 
AnswerRe: the drag of listview column don't work Pin
_Flaviu21-Sep-15 21:50
_Flaviu21-Sep-15 21:50 
QuestionHaving trouble with c++ templates Pin
BobInNJ21-Sep-15 13:48
BobInNJ21-Sep-15 13:48 
AnswerRe: Having trouble with c++ templates Pin
CPallini21-Sep-15 22:45
mveCPallini21-Sep-15 22:45 
QuestionCalling GDI+ DrawImage function throws _BLOCK_TYPE_IS_VALID error Pin
Kiran Satish21-Sep-15 8:39
Kiran Satish21-Sep-15 8: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.