Click here to Skip to main content
14,270,121 members

C / C++ / MFC

 
AnswerRe: Basic Server/Client TCP/IP Software Examples Pin
leon de boer1-Jan-19 19:17
memberleon de boer1-Jan-19 19:17 
GeneralRe: Basic Server/Client TCP/IP Software Examples Pin
Bram van Kampen2-Jan-19 13:57
memberBram van Kampen2-Jan-19 13:57 
GeneralRe: Basic Server/Client TCP/IP Software Examples Pin
jschell5-Jan-19 6:32
memberjschell5-Jan-19 6:32 
GeneralRe: Basic Server/Client TCP/IP Software Examples Pin
Bram van Kampen6-Jan-19 12:22
memberBram van Kampen6-Jan-19 12:22 
GeneralRe: Basic Server/Client TCP/IP Software Examples Pin
Bram van Kampen8-Jan-19 14:48
memberBram van Kampen8-Jan-19 14:48 
GeneralRe: Basic Server/Client TCP/IP Software Examples Pin
jschell26-Jan-19 5:52
memberjschell26-Jan-19 5:52 
AnswerRe: Basic Server/Client TCP/IP Software Examples Pin
Richard MacCutchan6-Jan-19 22:35
protectorRichard MacCutchan6-Jan-19 22:35 
QuestionRe initializing an array in C++ ? Pin
Vaclav_26-Dec-18 7:39
memberVaclav_26-Dec-18 7:39 
I have a task of passing variable values in an array to a function.
Of course compiler cannot reinitialize same array with different values.
Putting the code in a block works.
Awful hack.

So what is "the proper " way to accomplish the task in C++ ?
Multidimensional array is impractical in my case.

Cheers Vaclav







{
int *ipTestValue;
int a[32] = {1,2,3};
ipTestValue =&a[0];
vna.utility.TestArray(ipTestValue);
}
{
int *ipTestValue;
int a[32] =  {1,2,3,4,5,6,7};
ipTestValue =&a[0];
vna.utility.TestArray(ipTestValue);
}

QuestionRe: Re initializing an array in C++ ? Pin
David Crow26-Dec-18 7:51
memberDavid Crow26-Dec-18 7:51 
AnswerRe: Re initializing an array in C++ ? Pin
Vaclav_26-Dec-18 8:20
memberVaclav_26-Dec-18 8:20 
QuestionRe: Re initializing an array in C++ ? Pin
David Crow26-Dec-18 14:08
memberDavid Crow26-Dec-18 14:08 
AnswerRe: Re initializing an array in C++ ? Pin
Richard MacCutchan26-Dec-18 22:29
protectorRichard MacCutchan26-Dec-18 22:29 
AnswerRe: Re initializing an array in C++ ? Pin
Vaclav_27-Dec-18 6:02
memberVaclav_27-Dec-18 6:02 
GeneralRe: Re initializing an array in C++ ? Pin
Richard MacCutchan27-Dec-18 6:54
protectorRichard MacCutchan27-Dec-18 6:54 
GeneralRe: Re initializing an array in C++ ? Pin
Victor Nijegorodov27-Dec-18 7:16
memberVictor Nijegorodov27-Dec-18 7:16 
AnswerRe: Re initializing an array in C++ ? Pin
Vaclav_27-Dec-18 9:09
memberVaclav_27-Dec-18 9:09 
GeneralRe: Re initializing an array in C++ ? Pin
Richard MacCutchan27-Dec-18 22:16
protectorRichard MacCutchan27-Dec-18 22:16 
QuestionC programming Question on Characters Pin
Member 1409794322-Dec-18 7:12
memberMember 1409794322-Dec-18 7:12 
AnswerRe: C programming Question on Characters Pin
David Crow22-Dec-18 16:46
memberDavid Crow22-Dec-18 16:46 
GeneralRe: C programming Question on Characters Pin
Member 1409794322-Dec-18 20:32
memberMember 1409794322-Dec-18 20:32 
GeneralRe: C programming Question on Characters Pin
jschell23-Dec-18 7:44
memberjschell23-Dec-18 7:44 
GeneralRe: C programming Question on Characters Pin
David Crow23-Dec-18 12:50
memberDavid Crow23-Dec-18 12:50 
GeneralRe: C programming Question on Characters Pin
David Crow23-Dec-18 12:54
memberDavid Crow23-Dec-18 12:54 
AnswerRe: C programming Question on Characters Pin
jschell23-Dec-18 7:43
memberjschell23-Dec-18 7:43 
AnswerRe: Spurious end of file error from ifstream::read Pin
Richard MacCutchan22-Dec-18 4:37
protectorRichard MacCutchan22-Dec-18 4:37 

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.