Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem in c with linux Pin
a1_shay28-Nov-12 2:23
a1_shay28-Nov-12 2:23 
AnswerRe: problem in c with linux Pin
CPallini28-Nov-12 3:07
mveCPallini28-Nov-12 3:07 
SuggestionRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 3:11
mveRichard MacCutchan28-Nov-12 3:11 
GeneralRe: problem in c with linux Pin
a1_shay28-Nov-12 21:35
a1_shay28-Nov-12 21:35 
GeneralRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 23:04
mveRichard MacCutchan28-Nov-12 23:04 
AnswerRe: problem in c with linux Pin
Sajeesh Payolam30-Nov-12 18:40
Sajeesh Payolam30-Nov-12 18:40 
QuestionMerging Arrays Pin
pix_programmer27-Nov-12 21:57
pix_programmer27-Nov-12 21:57 
AnswerRe: Merging Arrays Pin
Andy41127-Nov-12 22:48
Andy41127-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.

C++
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
mveCPallini27-Nov-12 23:09 
JokeRe: Merging Arrays Pin
Richard MacCutchan27-Nov-12 23:45
mveRichard MacCutchan27-Nov-12 23:45 
JokeRe: Merging Arrays Pin
CPallini27-Nov-12 23:58
mveCPallini27-Nov-12 23:58 
GeneralRe: Merging Arrays Pin
David Crow28-Nov-12 5:36
David Crow28-Nov-12 5:36 
AnswerRe: Merging Arrays Pin
Stefan_Lang28-Nov-12 2:45
Stefan_Lang28-Nov-12 2:45 
AnswerRe: Merging Arrays Pin
Sajeesh Payolam30-Nov-12 18:47
Sajeesh Payolam30-Nov-12 18:47 
QuestionHow to use ribbon in MFC Activex control Pin
Lamourou27-Nov-12 20:23
Lamourou27-Nov-12 20:23 
AnswerRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan27-Nov-12 23:44
mveRichard MacCutchan27-Nov-12 23:44 
GeneralMessage Closed Pin
28-Nov-12 0:26
Lamourou28-Nov-12 0:26 
GeneralRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan28-Nov-12 1:10
mveRichard 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
yingkou27-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
mveRichard 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
yingkou28-Nov-12 14:35 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
David Crow28-Nov-12 17:33
David Crow28-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
Freak3028-Nov-12 23:33 
Questiontransparency in 32bit bmp in vs2010 Pin
002comp27-Nov-12 19:21
002comp27-Nov-12 19:21 
AnswerRe: transparency in 32bit bmp in vs2010 Pin
Hadi Dayvary27-Nov-12 21:42
professionalHadi Dayvary27-Nov-12 21:42 

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.