Click here to Skip to main content
15,509,706 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: using 'mkdir' for creating new directory Pin
Richard MacCutchan4-Aug-15 6:51
mveRichard MacCutchan4-Aug-15 6:51 
GeneralRe: using 'mkdir' for creating new directory Pin
PIEBALDconsult3-Aug-15 7:16
professionalPIEBALDconsult3-Aug-15 7:16 
AnswerRe: using 'mkdir' for creating new directory Pin
Wes Aday3-Aug-15 10:26
professionalWes Aday3-Aug-15 10:26 
Questionadding pointer arrays Pin
Member 935023729-Jul-15 23:09
Member 935023729-Jul-15 23:09 
AnswerRe: adding pointer arrays Pin
Richard Andrew x6430-Jul-15 10:29
professionalRichard Andrew x6430-Jul-15 10:29 
AnswerRe: adding pointer arrays Pin
Richard MacCutchan30-Jul-15 22:26
mveRichard MacCutchan30-Jul-15 22:26 
GeneralRe: adding pointer arrays Pin
Member 935023730-Jul-15 22:51
Member 935023730-Jul-15 22:51 
GeneralRe: adding pointer arrays Pin
Richard MacCutchan30-Jul-15 23:16
mveRichard MacCutchan30-Jul-15 23:16 
OK, so you know the length of the array, so you just allocate it as normal:
C++
int arraySize = 10+120+20;
bool* boolArray = new bool[arraySize];
memset(boolArray, 0, sizeof(bool) * arraySize);

gives you an array with all elements set to zero. You now just need to add the code to set the various other items as required.
C++
bool* pBool = boolArray + 10; // skip first 10 elements
for (int i = 0; i < 10; ++i) // loop round each set of 12 elements, i.e. 10 times
{
    // use the pBool pointer to set random values into the 12 elements
    // ...
    pBool += 12; // point to the next set, and repeat
}

GeneralRe: adding pointer arrays Pin
Member 935023731-Jul-15 0:16
Member 935023731-Jul-15 0:16 
GeneralRe: adding pointer arrays Pin
Richard MacCutchan31-Jul-15 0:42
mveRichard MacCutchan31-Jul-15 0:42 
GeneralRe: adding pointer arrays Pin
Member 935023731-Jul-15 1:34
Member 935023731-Jul-15 1:34 
GeneralRe: adding pointer arrays Pin
Richard MacCutchan31-Jul-15 1:36
mveRichard MacCutchan31-Jul-15 1:36 
QuestionDeclaration terminated incorrectly Pin
Pramitha P Kamath27-Jul-15 9:35
Pramitha P Kamath27-Jul-15 9:35 
AnswerRe: Declaration terminated incorrectly Pin
Wes Aday27-Jul-15 9:59
professionalWes Aday27-Jul-15 9:59 
GeneralRe: Declaration terminated incorrectly Pin
Pramitha P Kamath30-Jul-15 9:46
Pramitha P Kamath30-Jul-15 9:46 
AnswerRe: Declaration terminated incorrectly Pin
Richard MacCutchan30-Jul-15 22:14
mveRichard MacCutchan30-Jul-15 22:14 
Questionc++ Pin
Member 1184600721-Jul-15 22:43
Member 1184600721-Jul-15 22:43 
AnswerRe: c++ Pin
Richard MacCutchan21-Jul-15 22:53
mveRichard MacCutchan21-Jul-15 22:53 
GeneralRe: c++ Pin
Sascha Lefèvre25-Jul-15 13:39
professionalSascha Lefèvre25-Jul-15 13:39 
QuestionRe: c++ Pin
Paul Conrad13-Oct-15 8:20
professionalPaul Conrad13-Oct-15 8:20 
Questionc++ Pin
Member 1184600721-Jul-15 22:19
Member 1184600721-Jul-15 22:19 
GeneralRe: c++ Pin
Richard MacCutchan21-Jul-15 22:54
mveRichard MacCutchan21-Jul-15 22:54 
AnswerRe: c++ Pin
den2k8821-Jul-15 23:02
professionalden2k8821-Jul-15 23:02 
RantRe: c++ Pin
Richard Deeming22-Jul-15 2:22
mveRichard Deeming22-Jul-15 2:22 
QuestionAdd a dll file to using VC++ and use its functions Pin
ktnk19-Jul-15 4:03
ktnk19-Jul-15 4:03 

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.