Click here to Skip to main content
       

C / C++ / MFC

 
Questionproblem in c with linux Pinmembera1_shay28-Nov-12 3:23 
AnswerRe: problem in c with linux PinmvpCPallini28-Nov-12 4:07 
SuggestionRe: problem in c with linux PinmvpRichard MacCutchan28-Nov-12 4:11 
GeneralRe: problem in c with linux Pinmembera1_shay28-Nov-12 22:35 
GeneralRe: problem in c with linux PinmvpRichard MacCutchan29-Nov-12 0:04 
AnswerRe: problem in c with linux Pinmembersajeesh.c30-Nov-12 19:40 
QuestionMerging Arrays Pinmemberpix_programmer27-Nov-12 22:57 
AnswerRe: Merging Arrays PinmemberAndy41127-Nov-12 23:48 
OK, I had to delete my first answer, because it was a C# solution. Sorry. Now my brain is switsched in C-mode Smile | :)
 
You can use memcpy. But allways be aware of the size of the target array! It has to be large enough to take all of the elements.
 
int a[] = { 2, 4, 6};
int b[] = { 3, 5, 7};
 
int c[6];
 
memcpy(c, a, sizeof(a));
memcpy(c + 3, b, sizeof(b)); // + 3 because the first 3 elements are 
// allready in use
 
Hope it helps.
AnswerRe: Merging Arrays PinmvpCPallini28-Nov-12 0:09 
JokeRe: Merging Arrays PinmvpRichard MacCutchan28-Nov-12 0:45 
JokeRe: Merging Arrays PinmvpCPallini28-Nov-12 0:58 
GeneralRe: Merging Arrays PinmemberDavidCrow28-Nov-12 6:36 
AnswerRe: Merging Arrays PinmemberStefan_Lang28-Nov-12 3:45 
AnswerRe: Merging Arrays Pinmembersajeesh.c30-Nov-12 19:47 
QuestionHow to use ribbon in MFC Activex control PinmemberLamourou27-Nov-12 21:23 
AnswerRe: How to use ribbon in MFC Activex control PinmvpRichard MacCutchan28-Nov-12 0:44 
GeneralMessage Removed PinmemberLamourou28-Nov-12 1:26 
GeneralRe: How to use ribbon in MFC Activex control PinmvpRichard MacCutchan28-Nov-12 2:10 
Questionhow to use more than one rc file in vc6 project at the same time when compiling project [modified] Pinmemberyingkou27-Nov-12 20:59 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project PinmvpRichard MacCutchan28-Nov-12 0:42 
GeneralRe: how to use more than one rc file in vc6 project at the same time when compiling project Pinmemberyingkou28-Nov-12 15:35 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project PinmemberDavidCrow28-Nov-12 18:33 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project PinmemberFreak3029-Nov-12 0:33 
Questiontransparency in 32bit bmp in vs2010 Pinmemberyogeshs27-Nov-12 20:21 
AnswerRe: transparency in 32bit bmp in vs2010 PinmemberHadi Dayvary27-Nov-12 22:42 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 24 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid