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

C / C++ / MFC

 
GeneralRe: How Can I build an Array of Arrays? Pin
Software20075-Jun-09 3:23
Software20075-Jun-09 3:23 
GeneralRe: How Can I build an Array of Arrays? Pin
Code-o-mat5-Jun-09 3:45
Code-o-mat5-Jun-09 3:45 
GeneralRe: How Can I build an Array of Arrays? Pin
Software20075-Jun-09 4:03
Software20075-Jun-09 4:03 
GeneralRe: How Can I build an Array of Arrays? Pin
Software20075-Jun-09 4:37
Software20075-Jun-09 4:37 
GeneralRe: How Can I build an Array of Arrays? Pin
Code-o-mat5-Jun-09 4:58
Code-o-mat5-Jun-09 4:58 
GeneralRe: How Can I build an Array of Arrays? Pin
Software20075-Jun-09 5:05
Software20075-Jun-09 5:05 
GeneralRe: How Can I build an Array of Arrays? Pin
Code-o-mat5-Jun-09 5:08
Code-o-mat5-Jun-09 5:08 
GeneralRe: How Can I build an Array of Arrays? [modified] Pin
Software20075-Jun-09 5:17
Software20075-Jun-09 5:17 
GeneralRe: How Can I build an Array of Arrays? Pin
Code-o-mat5-Jun-09 5:36
Code-o-mat5-Jun-09 5:36 
GeneralRe: How Can I build an Array of Arrays? Pin
Software20075-Jun-09 6:56
Software20075-Jun-09 6:56 
GeneralRe: How Can I build an Array of Arrays? Pin
Code-o-mat5-Jun-09 7:30
Code-o-mat5-Jun-09 7:30 
Questionabout linker error in the C code of CSmtp_v1_5 (unable to compile the main.cpp file due to linker error) Pin
WindowsVsLinux5-Jun-09 2:50
WindowsVsLinux5-Jun-09 2:50 
QuestionRe: about linker error in the C code of CSmtp_v1_5 (unable to compile the main.cpp file due to linker error) Pin
CPallini5-Jun-09 5:15
mveCPallini5-Jun-09 5:15 
QuestionCopy files and directory C\Win32 no MFC Pin
aurelcly5-Jun-09 2:38
aurelcly5-Jun-09 2:38 
AnswerRe: Copy files and directory C\Win32 no MFC Pin
David Crow5-Jun-09 2:51
David Crow5-Jun-09 2:51 
Questionhow to display vector values in .txt file in mfc Pin
pinky88845-Jun-09 2:12
pinky88845-Jun-09 2:12 
AnswerRe: how to display vector values in .txt file in mfc Pin
Chris Losinger5-Jun-09 2:39
professionalChris Losinger5-Jun-09 2:39 
AnswerRe: how to display vector values in .txt file in mfc Pin
Stuart Dootson5-Jun-09 2:47
professionalStuart Dootson5-Jun-09 2:47 
GeneralRe: how to display vector values in .txt file in mfc Pin
Chris Losinger5-Jun-09 2:49
professionalChris Losinger5-Jun-09 2:49 
GeneralRe: how to display vector values in .txt file in mfc Pin
Stuart Dootson5-Jun-09 3:02
professionalStuart Dootson5-Jun-09 3:02 
Question3d array [modified] Pin
roshinisachi5-Jun-09 0:41
roshinisachi5-Jun-09 0:41 
had simulated a 3 d array as follows
typedef unsigned short byte;
nbands=layers;
j=x_length*y_length;
byte**data_1=new byte*[nbands];
data1[0]=new byte[nbands*j];

for(int i=1;i<nbands<++i)
{
data1[1]=data1[i-1]+j;
)

now consider the 3d equivalent array to be[layers][y_length][x_length]
//assume the data is stored in data_1
suppose i create a data_2
byte**data_2=new byte*[x_length];
data2[0]=new byte[nbands*j];

for(int i=1;i<x_length;++i)
{
data2[1]=data2[i-1]+(nbands*y_length);
)
how to i transfer the data frm data_1 to 2
my req dimension nw wud be [x_length][layers][y_length]as comp to the first one
ie if layers=64
and [y][x]=[256][241]or something
wat wud function convertdata_1to2 look like???
i express my eq 3d matrices[layers][y][x]
please do help  
thanks in advance

modified on Friday, June 5, 2009 8:27 AM

QuestionRe: repost Pin
CPallini5-Jun-09 0:48
mveCPallini5-Jun-09 0:48 
AnswerRe: 3d array Pin
roshinisachi5-Jun-09 2:29
roshinisachi5-Jun-09 2:29 
QuestionRe: 3d array Pin
CPallini5-Jun-09 2:33
mveCPallini5-Jun-09 2:33 
AnswerRe: 3d array Pin
roshinisachi5-Jun-09 2:40
roshinisachi5-Jun-09 2:40 

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.