12,455,917 members (81,014 online)

# C / C++ / MFC

 problem in c with linux a1_shay28-Nov-12 2:23 a1_shay 28-Nov-12 2:23
 Re: problem in c with linux CPallini28-Nov-12 3:07 CPallini 28-Nov-12 3:07
 Re: problem in c with linux Richard MacCutchan28-Nov-12 3:11 Richard MacCutchan 28-Nov-12 3:11
 Re: problem in c with linux a1_shay28-Nov-12 21:35 a1_shay 28-Nov-12 21:35
 Re: problem in c with linux Richard MacCutchan28-Nov-12 23:04 Richard MacCutchan 28-Nov-12 23:04
 Re: problem in c with linux sajeesh.c30-Nov-12 18:40 sajeesh.c 30-Nov-12 18:40
 Merging Arrays pix_programmer27-Nov-12 21:57 pix_programmer 27-Nov-12 21:57
 Re: Merging Arrays Andy41127-Nov-12 22:48 Andy411 27-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 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.
 Re: Merging Arrays CPallini27-Nov-12 23:09 CPallini 27-Nov-12 23:09
 Re: Merging Arrays Richard MacCutchan27-Nov-12 23:45 Richard MacCutchan 27-Nov-12 23:45
 Re: Merging Arrays CPallini27-Nov-12 23:58 CPallini 27-Nov-12 23:58
 Re: Merging Arrays DavidCrow28-Nov-12 5:36 DavidCrow 28-Nov-12 5:36
 Re: Merging Arrays Stefan_Lang28-Nov-12 2:45 Stefan_Lang 28-Nov-12 2:45
 Re: Merging Arrays sajeesh.c30-Nov-12 18:47 sajeesh.c 30-Nov-12 18:47
 How to use ribbon in MFC Activex control Lamourou27-Nov-12 20:23 Lamourou 27-Nov-12 20:23
 Re: How to use ribbon in MFC Activex control Richard MacCutchan27-Nov-12 23:44 Richard MacCutchan 27-Nov-12 23:44
 Message Removed Lamourou28-Nov-12 0:26 Lamourou 28-Nov-12 0:26
 Re: How to use ribbon in MFC Activex control Richard MacCutchan28-Nov-12 1:10 Richard MacCutchan 28-Nov-12 1:10
 how to use more than one rc file in vc6 project at the same time when compiling project yingkou27-Nov-12 19:59 yingkou 27-Nov-12 19:59
 Re: how to use more than one rc file in vc6 project at the same time when compiling project Richard MacCutchan27-Nov-12 23:42 Richard MacCutchan 27-Nov-12 23:42
 Re: how to use more than one rc file in vc6 project at the same time when compiling project yingkou28-Nov-12 14:35 yingkou 28-Nov-12 14:35
 Re: how to use more than one rc file in vc6 project at the same time when compiling project DavidCrow28-Nov-12 17:33 DavidCrow 28-Nov-12 17:33
 Re: how to use more than one rc file in vc6 project at the same time when compiling project Freak3028-Nov-12 23:33 Freak30 28-Nov-12 23:33
 transparency in 32bit bmp in vs2010 yogeshs27-Nov-12 19:21 yogeshs 27-Nov-12 19:21
 Re: transparency in 32bit bmp in vs2010 Hadi Dayvary27-Nov-12 21:42 Hadi Dayvary 27-Nov-12 21:42
 Last Visit: 31-Dec-99 18:00     Last Update: 30-Aug-16 9:25 Refresh « Prev1...444445446447448449450451452453 Next »