که باید void باشن
مثلاً
public static void Sort(int []a)
{
int temp;
for(int i = 1 ; i < i.Length ; i++)
for(int j = 0 ; j < a.Length-i ; i++)
if ( a[j] > a[j+1] )
{
temp = a[j];
a[j+1] = a[j];
a[j+1] = temp;
{
int temp;
for(int i = 1 ; i < i.Length ; i++)
for(int j = 0 ; j < a.Length-i ; i++)
if ( a[j] > a[j+1] )
{
temp = a[j];
a[j+1] = a[j];
a[j+1] = temp;
}
}
}
فعلاً تمام توابع رو
public , static
در نظر می گیریم تا بعداً سر فرصت بگم که چی هستن و چی کار می کنن که بتونیم تغییرشون بدیم!
Blogged with the Flock Browser