Click here to Skip to main content
15,920,602 members
Home / Discussions / C#
   

C#

 
AnswerRe: Array PinPopular
David198723-Apr-11 2:15
David198723-Apr-11 2:15 
GeneralRe: Array Pin
messages23-Apr-11 2:20
messages23-Apr-11 2:20 
GeneralRe: Array Pin
David198723-Apr-11 3:08
David198723-Apr-11 3:08 
AnswerRe: Array Pin
OriginalGriff23-Apr-11 8:23
mveOriginalGriff23-Apr-11 8:23 
GeneralRe: Array Pin
Prasanta_Prince23-Apr-11 18:52
Prasanta_Prince23-Apr-11 18:52 
GeneralRe: Array Pin
messages23-Apr-11 19:56
messages23-Apr-11 19:56 
GeneralRe: Array Pin
David198723-Apr-11 20:04
David198723-Apr-11 20:04 
GeneralRe: Array Pin
OriginalGriff23-Apr-11 21:17
mveOriginalGriff23-Apr-11 21:17 
Not like that! Laugh | :laugh:
If you look back at my previous answer, that is a rectangular array (doubles or ints, bools or TextBoxes, it doesn't matter what the type is) so you have to tell the compiler how big it is!
double[ , , ,] m_array4 = new double[,,,];
Will give a compilation error, because new double[,,,] does not specify all (or indeed any) of the dimensions. Without them, the space cannot be allocated, and it will complain.
double[ , , ,] m_array4 = new double[3,4,5,6];
Will do it, but - remember I said they get big quickly? - it allocates space for 360 doubles...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

GeneralRe: Array Pin
messages23-Apr-11 19:54
messages23-Apr-11 19:54 
AnswerRe: Array Pin
Abhinav S25-Apr-11 1:29
Abhinav S25-Apr-11 1:29 
AnswerRe: Array Pin
ambarishtv28-Apr-11 6:36
ambarishtv28-Apr-11 6:36 
QuestionGZipStream ends too early Pin
Paladin200022-Apr-11 10:09
Paladin200022-Apr-11 10:09 
AnswerRe: GZipStream ends too early Pin
Andrew Rissing22-Apr-11 15:55
Andrew Rissing22-Apr-11 15:55 
GeneralRe: GZipStream ends too early Pin
Paladin200025-Apr-11 3:43
Paladin200025-Apr-11 3:43 
GeneralRe: GZipStream ends too early Pin
Andrew Rissing25-Apr-11 4:05
Andrew Rissing25-Apr-11 4:05 
QuestionUnable To Deserialize Pin
Anubhava Dimri22-Apr-11 0:36
Anubhava Dimri22-Apr-11 0:36 
AnswerRe: Unable To Deserialize Pin
Not Active22-Apr-11 3:50
mentorNot Active22-Apr-11 3:50 
AnswerRe: Unable To Deserialize Pin
SledgeHammer0122-Apr-11 5:11
SledgeHammer0122-Apr-11 5:11 
GeneralRe: Unable To Deserialize Pin
DaveyM6922-Apr-11 8:07
professionalDaveyM6922-Apr-11 8:07 
GeneralRe: Unable To Deserialize Pin
Anubhava Dimri22-Apr-11 18:11
Anubhava Dimri22-Apr-11 18:11 
Questiongraph adjacency matrix Pin
Alex25221-Apr-11 20:15
Alex25221-Apr-11 20:15 
AnswerRe: graph adjacency matrix Pin
Dave Kreskowiak22-Apr-11 4:13
mveDave Kreskowiak22-Apr-11 4:13 
GeneralRe: graph adjacency matrix Pin
Alex25222-Apr-11 8:59
Alex25222-Apr-11 8:59 
GeneralRe: graph adjacency matrix Pin
Pete O'Hanlon22-Apr-11 9:26
mvePete O'Hanlon22-Apr-11 9:26 
GeneralRe: graph adjacency matrix Pin
David198722-Apr-11 4:26
David198722-Apr-11 4:26 

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.