Click here to Skip to main content
15,902,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerChanging control colors (was: OnPaint overriding?) Pin
Michael Dunn28-Sep-00 8:15
sitebuilderMichael Dunn28-Sep-00 8:15 
GeneralChanging colors... Pin
Fredrik29-Sep-00 4:07
Fredrik29-Sep-00 4:07 
GeneralQ. Can I convert a CString value into a hex value? Urgent!!! Pin
Crystal27-Sep-00 17:44
Crystal27-Sep-00 17:44 
GeneralRe: Q. Can I convert a CString value into a hex value? Urgent!!! Pin
HP27-Sep-00 20:09
HP27-Sep-00 20:09 
QuestionParse tokens in nested parentheses? Pin
Matt Weagle27-Sep-00 16:53
Matt Weagle27-Sep-00 16:53 
AnswerRe: Parse tokens in nested parentheses? Pin
Stober27-Sep-00 17:09
Stober27-Sep-00 17:09 
AnswerRe: Parse tokens in nested parentheses? Pin
Sam Hobbs28-Sep-00 4:50
Sam Hobbs28-Sep-00 4:50 
General*** Declaring Array inside another Array *** Pin
Steve Lai27-Sep-00 11:55
Steve Lai27-Sep-00 11:55 
Hi Everyone,

How do I declare an Array inside another Array?

For example, I have the following two arrays:
/////////////////////////////////////////////////////////
int UserInputSize1, UserInputSize2;

int *array1;
array1= new int[UserInputSize1];

int *array2;
array2=new int[UserInputSize2];

//the size of the arrays will be determined by the user input during runtime.
///////////////////////////////////////////////////////

How do I declare them so under array1, it’ll contain the other array?

So for example, if the size of array1 is 3 and the size of array2 is 10, then under every element in array1, I’ll be able to store 10 numbers. Then I’ll be able to store a total of 30 numbers with this example.

I would like to do something like this:

Array1[0].Array2[0]=5;
Array1[0].Array2[1]=10;
Array1[0].Array2[3]=11;


If anyone knows, Please let me know.

Thanks in advance

Steve

GeneralRe: *** Declaring Array inside another Array *** Pin
Michael Dunn27-Sep-00 14:39
sitebuilderMichael Dunn27-Sep-00 14:39 
GeneralRe: *** Declaring Array inside another Array *** Pin
Sam Hobbs27-Sep-00 15:05
Sam Hobbs27-Sep-00 15:05 
QuestionIs there any way of printing text on top of a pdf file, without printing the pdf then asking the user to stick the paper back into the printer? Pin
Erich Ruth27-Sep-00 11:34
Erich Ruth27-Sep-00 11:34 
AnswerRe: Is there any way of printing text on top of a pdf file, without printing the pdf then asking the user to stick the paper back into the printer? Pin
Feng Yuan (www.fengyuan.com)27-Sep-00 15:38
sussFeng Yuan (www.fengyuan.com)27-Sep-00 15:38 
Generalwindows 95 DDK Pin
loki rasputin27-Sep-00 11:33
loki rasputin27-Sep-00 11:33 
GeneralIs it possible to stretch a bitmap to the size of a CStatic? Pin
Marcelo Guerra27-Sep-00 4:08
Marcelo Guerra27-Sep-00 4:08 
GeneralRe: Is it possible to stretch a bitmap to the size of a CStatic? Pin
Jeremy Davis28-Sep-00 1:37
Jeremy Davis28-Sep-00 1:37 
General*** Declaring Array size from User Input *** Pin
Steve Lai27-Sep-00 3:46
Steve Lai27-Sep-00 3:46 
GeneralRe: *** Declaring Array size from User Input *** Pin
Serge Velikevitch27-Sep-00 4:21
sussSerge Velikevitch27-Sep-00 4:21 
GeneralRe: *** Declaring Array size from User Input *** Pin
Philip Nicoletti27-Sep-00 6:41
Philip Nicoletti27-Sep-00 6:41 
GeneralBring up security dialog Pin
Member 16798026-Sep-00 2:09
Member 16798026-Sep-00 2:09 
GeneralNT function which shows the adminsitrator or user rights Pin
Member 559426-Sep-00 0:23
Member 559426-Sep-00 0:23 
GeneralProperty Sheet Without MFC help please.. Pin
Walid MEDDEB25-Sep-00 23:46
Walid MEDDEB25-Sep-00 23:46 
GeneralRe: Property Sheet Without MFC help please.. Pin
Michael Dunn26-Sep-00 6:30
sitebuilderMichael Dunn26-Sep-00 6:30 
GeneralRe: Property Sheet Without MFC help please.. Pin
Serge Velikevitch26-Sep-00 6:35
sussSerge Velikevitch26-Sep-00 6:35 
Generalreturnvalue message handler Pin
P e t e r25-Sep-00 22:00
P e t e r25-Sep-00 22:00 
GeneralTerminating DOS Process under WinNT/2000 Pin
Ronald L. Russell Jr. (Ron)25-Sep-00 13:19
sussRonald L. Russell Jr. (Ron)25-Sep-00 13:19 

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.