Click here to Skip to main content
11,632,011 members (73,551 online)

C / C++ / MFC

 
Questionproblem in c with linux Pin
a1_shay28-Nov-12 2:23
membera1_shay28-Nov-12 2:23 
AnswerRe: problem in c with linux Pin
CPallini28-Nov-12 3:07
mvpCPallini28-Nov-12 3:07 
SuggestionRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 3:11
mvpRichard MacCutchan28-Nov-12 3:11 
GeneralRe: problem in c with linux Pin
a1_shay28-Nov-12 21:35
membera1_shay28-Nov-12 21:35 
GeneralRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 23:04
mvpRichard MacCutchan28-Nov-12 23:04 
AnswerRe: problem in c with linux Pin
sajeesh.c30-Nov-12 18:40
membersajeesh.c30-Nov-12 18:40 
QuestionMerging Arrays Pin
pix_programmer27-Nov-12 21:57
memberpix_programmer27-Nov-12 21:57 
AnswerRe: Merging Arrays Pin
Andy41127-Nov-12 22:48
memberAndy41127-Nov-12 22: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 Pin
CPallini27-Nov-12 23:09
mvpCPallini27-Nov-12 23:09 
JokeRe: Merging Arrays Pin
Richard MacCutchan27-Nov-12 23:45
mvpRichard MacCutchan27-Nov-12 23:45 
JokeRe: Merging Arrays Pin
CPallini27-Nov-12 23:58
mvpCPallini27-Nov-12 23:58 
GeneralRe: Merging Arrays Pin
DavidCrow28-Nov-12 5:36
memberDavidCrow28-Nov-12 5:36 
AnswerRe: Merging Arrays Pin
Stefan_Lang28-Nov-12 2:45
memberStefan_Lang28-Nov-12 2:45 
AnswerRe: Merging Arrays Pin
sajeesh.c30-Nov-12 18:47
membersajeesh.c30-Nov-12 18:47 
QuestionHow to use ribbon in MFC Activex control Pin
Lamourou27-Nov-12 20:23
memberLamourou27-Nov-12 20:23 
AnswerRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan27-Nov-12 23:44
mvpRichard MacCutchan27-Nov-12 23:44 
GeneralMessage Removed Pin
Lamourou28-Nov-12 0:26
memberLamourou28-Nov-12 0:26 
GeneralRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan28-Nov-12 1:10
mvpRichard MacCutchan28-Nov-12 1:10 
Questionhow to use more than one rc file in vc6 project at the same time when compiling project Pin
yingkou27-Nov-12 19:59
memberyingkou27-Nov-12 19:59 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
Richard MacCutchan27-Nov-12 23:42
mvpRichard MacCutchan27-Nov-12 23:42 
GeneralRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
yingkou28-Nov-12 14:35
memberyingkou28-Nov-12 14:35 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
DavidCrow28-Nov-12 17:33
memberDavidCrow28-Nov-12 17:33 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
Freak3028-Nov-12 23:33
memberFreak3028-Nov-12 23:33 
Questiontransparency in 32bit bmp in vs2010 Pin
yogeshs27-Nov-12 19:21
memberyogeshs27-Nov-12 19:21 
AnswerRe: transparency in 32bit bmp in vs2010 Pin
Hadi Dayvary27-Nov-12 21:42
memberHadi Dayvary27-Nov-12 21: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
Web04 | 2.8.150728.1 | Last Updated 28 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid