hani c de
Kod: Tümünü seç
struct x{
int deger
struct x * next;
};
işte bunu c# da yazamıyorum. struct içindekipointer i tanımlamaya çalıştığımda daha kod yazarken bi sürü warning hata bişiler alıom.. bunu c# da nasıl tanımlarım..??
Kod: Tümünü seç
struct x{
int deger
struct x * next;
};
Kod: Tümünü seç
using System;
namespace yapilar
{
class sinif_1
{
struct oyuncular
{
public string ad;
public double boy;
public string takim;
}
public static void Main()
{
}
}
}
Kod: Tümünü seç
using System;
namespace yapilar
{
class sinif_1
{
public static void Main()
{
}
}
struct oyuncular
{
public string ad;
public double boy;
public string takim;
}
}
Kod: Tümünü seç
using System;
namespace yapilar
{
class sinif_1
{
public static void Main()
{
oyuncular nesne;
nesne = new oyuncular();
}
}
struct oyuncular
{
public string ad;
public double boy;
public string takim;
}
}
Kod: Tümünü seç
unsafe struct Yapi
{
int i;
Yapi *next;
}