Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

* Scripting Languages
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* aktuális (2023/24/2)
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

20180406c

Arrays, matrices

int[] scores = new int[10];                 // [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

int[] values = new int[] { 2, 5, 8, 3 };    // [2, 5, 8, 3]
WriteLine(values.Length);                   // 4

int[] points = { 2, 5, 8, 3 };              // [2, 5, 8, 3] , with an array initializer (*)

int[,] matrix = new int[2, 3];

int[,] m2 =
{
    { 1, 2, 3 },
    { 4, 5, 6 }
};

for (int row = 0; row < m2.GetLength(0); ++row)
{
    for (int col = 0; col < m2.GetLength(1); ++col)
    {
        Write(m2[row, col] + " ");
    }
    WriteLine();
}


// simplest way (*)

var wins = new[] { 3, 5, 7, 8 };            // [3, 5, 7, 8]

The asterisks (*) indicate the preferred ways.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2018 April 07, 11:55