Click here to Skip to main content
15,896,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
chevu10-Mar-11 17:30
chevu10-Mar-11 17:30 
Are trying to transfer content of arr to arr3, right? But I am not able to see any memory allocation for arr3... You have to allocate some memory.. The way you are doing wont be safe in terms of memory pointer usage..

You can do something like this...

case 1: assigning direct pointer of arr to arr3
arr3 = new int[SIZE];
/* for loop with i*/
arr3[i] = &(arr[UPTO_SIZE])

case 2: copyinh content of arr to arr3
arr3 = new int[SIZE];
/* for loop upto size */
 arr3[i] = new int[size2]

/* copy logic from arr to arr3*/



I hope you can add proper code in this logic... As we cannot complete your assignment... Big Grin | :-D
GeneralRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Mike Certini10-Mar-11 17:51
Mike Certini10-Mar-11 17:51 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
chevu10-Mar-11 18:11
chevu10-Mar-11 18:11 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Richard MacCutchan10-Mar-11 22:38
mveRichard MacCutchan10-Mar-11 22:38 
AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
Stefan_Lang11-Mar-11 2:18
Stefan_Lang11-Mar-11 2:18 
QuestionRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
David Crow11-Mar-11 2:49
David Crow11-Mar-11 2:49 
QuestionData Structure library Pin
pandit8410-Mar-11 2:32
pandit8410-Mar-11 2:32 
AnswerRe: Data Structure library Pin
Richard MacCutchan10-Mar-11 3:30
mveRichard MacCutchan10-Mar-11 3:30 
GeneralRe: Data Structure library Pin
pandit8410-Mar-11 23:39
pandit8410-Mar-11 23:39 
GeneralRe: Data Structure library Pin
Richard MacCutchan10-Mar-11 23:52
mveRichard MacCutchan10-Mar-11 23:52 
QuestionProblems with MFCTabCtrl/MDITabbedControl Pin
Dansveen10-Mar-11 2:27
Dansveen10-Mar-11 2:27 
QuestionHandle leaks in WinSock - WIndows Application (MFC) Pin
chevu10-Mar-11 1:09
chevu10-Mar-11 1:09 
AnswerRe: Handle leaks in WinSock - WIndows Application (MFC) Pin
Niklas L10-Mar-11 20:58
Niklas L10-Mar-11 20:58 
GeneralRe: Handle leaks in WinSock - WIndows Application (MFC) Pin
chevu10-Mar-11 21:33
chevu10-Mar-11 21:33 
AnswerRe: Handle leaks in WinSock - WIndows Application (MFC) Pin
bob1697211-Mar-11 1:54
bob1697211-Mar-11 1:54 
GeneralRe: Handle leaks in WinSock - WIndows Application (MFC) Pin
chevu11-Mar-11 2:34
chevu11-Mar-11 2:34 
GeneralRe: Handle leaks in WinSock - WIndows Application (MFC) Pin
bob1697211-Mar-11 3:10
bob1697211-Mar-11 3:10 
Questionhow to fastforward in directshow Pin
raj157610-Mar-11 1:01
raj157610-Mar-11 1:01 
AnswerRe: how to fastforward in directshow Pin
Richard MacCutchan10-Mar-11 3:28
mveRichard MacCutchan10-Mar-11 3:28 
AnswerRe: how to fastforward in directshow Pin
Cool_Dev10-Mar-11 5:19
Cool_Dev10-Mar-11 5:19 
QuestionProblem with RegisterPowerSettingNotification and USER32.dll. Pin
aangerma10-Mar-11 0:31
aangerma10-Mar-11 0:31 
AnswerRe: Problem with RegisterPowerSettingNotification and USER32.dll. Pin
Hans Dietrich10-Mar-11 0:35
mentorHans Dietrich10-Mar-11 0:35 
GeneralRe: Problem with RegisterPowerSettingNotification and USER32.dll. Pin
aangerma10-Mar-11 0:46
aangerma10-Mar-11 0:46 
GeneralRe: Problem with RegisterPowerSettingNotification and USER32.dll. Pin
Hans Dietrich10-Mar-11 0:50
mentorHans Dietrich10-Mar-11 0:50 
GeneralRe: Problem with RegisterPowerSettingNotification and USER32.dll. Pin
aangerma10-Mar-11 2:02
aangerma10-Mar-11 2:02 

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.