Muhtemelen bu gerçekten basit bir şey - C# ile başlıyorum ve örneğin bir diziye değer eklemem gerekiyor:
int[] terms;
for(int runs = 0; runs < 400; runs++)
{
terms[] = runs;
}
PHP kullanmış olanlar için, C#'ta yapmaya çalıştığım şey şu:
$arr = array();
for ($i = 0; $i < 10; $i++) {
$arr[] = $i;
}
Önce diziyi ayırmanız gerekir:
int [] terms = new int[400]; // allocate an array of 400 ints
for(int runs = 0; runs < terms.Length; runs++) // Use Length property rather than the 400 magic number again
{
terms[runs] = value;
}