Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 9:19
_Flaviu11-Mar-11 9:19 
GeneralRe: How can I know which item is selected ? Pin
Hans Dietrich11-Mar-11 13:12
mentorHans Dietrich11-Mar-11 13:12 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:29
_Flaviu11-Mar-11 20:29 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:37
_Flaviu11-Mar-11 20:37 
QuestionHow can create heading and format cell text in excel? Pin
Le@rner10-Mar-11 23:38
Le@rner10-Mar-11 23:38 
AnswerRe: How can create heading and format cell text in excel? Pin
Richard MacCutchan10-Mar-11 23:56
mveRichard MacCutchan10-Mar-11 23:56 
AnswerRe: How can create heading and format cell text in excel? Pin
Cool_Dev11-Mar-11 0:10
Cool_Dev11-Mar-11 0:10 
QuestionCopying From Single Dimension Array To Multiple Dimension Array Pin
Mike Certini10-Mar-11 15:06
Mike Certini10-Mar-11 15:06 
I am currently trying to copy the contents from a single dimension array to a multiple dimension array using pointer notation. I though am having problems doing so. Can someone out there show me how to program a multiple dimension array that will take from a single dimension array? Listed below is sample code that I am trying to get to work.

Code:
#include <stdio.h>
#define SIZE 5
#define SIZE2 5
#define ROWS 2

void transarr4(int *(*(arry)), int * arry2, int row); //Pointer Notation (Multiple Dimension Array)

int main(void)
{
int arr[SIZE] = {100,200,300,400,500};
int arr2[ROWS][SIZE2] = {{},{}};
int *(*(arr3)) = 0;

transarr4(arr3,arr,ROWS); //Pointer Notation (Multiple Dimension Array)

return 0;
}

//====================================================================================================
// Pointer Notation (Multi-Dimension Array)
//====================================================================================================
void transarr4(int *(*(arry)), int * arry2, int row)
{
int num = 0;
int r = 0;
int c = 0;
for(r = 0; r < row; r++)
{
for(c = 0; c < SIZE2; c++)
{
//arr[r][c] = arr2[c];
*(*(arry)) = arry2[c];
printf("%d",*(*(arry + r)+c));
printf("\n");
}
}

}













AnswerRe: Copying From Single Dimension Array To Multiple Dimension Array Pin
chevu10-Mar-11 17:30
chevu10-Mar-11 17:30 
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 

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.