Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Translating a jagged array

Rate me:
Please Sign up or sign in to vote.
1.80/5 (2 votes)
13 Dec 2011CPOL 7.3K   2
array= new int[4][] { new int[] { 5, 1, 0, 0, 0 }, new int[] { 6, 2, 0, 1, 0 }, new int[] { 7, 3, 0, 0, 0 }, new int[] { 0, 4, 0, 0, 0 },};1341 keystrokes spared.
C#
array= new int[4][] {
    new int[] { 5, 1, 0, 0, 0 },
    new int[] { 6, 2, 0, 1, 0 },
    new int[] { 7, 3, 0, 0, 0 },
    new int[] { 0, 4, 0, 0, 0 },
};

1341 keystrokes spared.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO VISION fOr VISION
Belgium Belgium
I fell into applied algorithmics at the age of 16 or so. This eventually brought me to develop machine vision software as a professional. This is Dreamland for algorithm lovers.

Comments and Discussions

 
GeneralI thought you liked Monthy Python's sense of humour. Pin
YvesDaoust14-Dec-11 3:26
YvesDaoust14-Dec-11 3:26 
GeneralReason for my vote of 1 A solution to a particular instance ... Pin
Lutosław14-Dec-11 3:18
Lutosław14-Dec-11 3:18 

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.