Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Huge array processing. Pin
CPallini27-Jun-08 2:09
mveCPallini27-Jun-08 2:09 
GeneralRe: Huge array processing. Pin
Rajesh R Subramanian27-Jun-08 19:31
professionalRajesh R Subramanian27-Jun-08 19:31 
GeneralRe: Huge array processing. Pin
Rustik23-Jun-08 2:22
Rustik23-Jun-08 2:22 
GeneralRe: Huge array processing. Pin
CPallini23-Jun-08 2:26
mveCPallini23-Jun-08 2:26 
RantRe: Huge array processing. Pin
Nelek23-Jun-08 13:26
protectorNelek23-Jun-08 13:26 
GeneralRe: Huge array processing. Pin
CPallini22-Jun-08 21:34
mveCPallini22-Jun-08 21:34 
GeneralRe: Huge array processing. Pin
Rustik22-Jun-08 22:55
Rustik22-Jun-08 22:55 
GeneralRe: Huge array processing. [modified] Pin
CPallini22-Jun-08 23:23
mveCPallini22-Jun-08 23:23 
Rustik wrote:
u'r lucky

Sure. Wink | ;)



Rustik wrote:
Please post your code.


Here you are.
int * Arr[2304];
int row;
int col;


for(row=0; row<=2303; row++)
  Arr[row] = (int*) malloc(3072 * sizeof(int)); // now we use the heap!

for(row=0; row<=2303; row++){
  for(col=0; col<=3071; col++)
    Arr[row][col]=row*4096+col;
}

for(row=0; row<=2303; row++)
  free (Arr[row]); // cleanup...


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

modified on Monday, June 23, 2008 8:58 AM

GeneralRe: Huge array processing. Pin
Rustik23-Jun-08 2:29
Rustik23-Jun-08 2:29 
GeneralRe: Huge array processing. Pin
CPallini23-Jun-08 3:00
mveCPallini23-Jun-08 3:00 
GeneralRe: Huge array processing. Pin
Rustik25-Jun-08 2:56
Rustik25-Jun-08 2:56 
GeneralRe: Huge array processing. Pin
CPallini25-Jun-08 4:44
mveCPallini25-Jun-08 4:44 
GeneralRe: Huge array processing. Pin
Rustik25-Jun-08 23:12
Rustik25-Jun-08 23:12 
GeneralRe: Huge array processing. Pin
CPallini26-Jun-08 0:00
mveCPallini26-Jun-08 0:00 
GeneralRe: Huge array processing. Pin
Rustik26-Jun-08 2:25
Rustik26-Jun-08 2:25 
QuestionCompilation error Pin
CodingLover22-Jun-08 20:59
CodingLover22-Jun-08 20:59 
AnswerRe: Compilation error Pin
Paresh Chitte22-Jun-08 21:13
Paresh Chitte22-Jun-08 21:13 
NewsRe: Compilation error Pin
CodingLover22-Jun-08 22:18
CodingLover22-Jun-08 22:18 
GeneralRe: Compilation error Pin
Paresh Chitte22-Jun-08 23:44
Paresh Chitte22-Jun-08 23:44 
GeneralRe: Compilation error Pin
CodingLover22-Jun-08 23:46
CodingLover22-Jun-08 23:46 
GeneralRe: Compilation error Pin
Paresh Chitte23-Jun-08 0:07
Paresh Chitte23-Jun-08 0:07 
General[OT] Re: Compilation error Pin
David Crow23-Jun-08 3:35
David Crow23-Jun-08 3:35 
AnswerRe: Compilation error Pin
Cedric Moonen22-Jun-08 21:13
Cedric Moonen22-Jun-08 21:13 
GeneralRe: Compilation error Pin
CodingLover22-Jun-08 21:16
CodingLover22-Jun-08 21:16 
GeneralRe: Compilation error Pin
Cedric Moonen22-Jun-08 21:19
Cedric Moonen22-Jun-08 21: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.