Masato
2005-01-10 03:54:22 UTC
$B%3%s%Q%$%k%(%i!<$K4X$7$F!"5?Ld$K;W$C$?$3$H$,$"$C$?$N$GEj9F$7$^$9!#(B
$B$b$7!"@bL@$7$F$$$?$@$1$kJ}$$$i$C$7$c$$$^$7$?$i8f4j$$$7$^$9!#(B
$B5$$K$7$J$1$l$P$=$l$G$$$$$N$+$b$7$l$^$;$s$,!"!"0l1~!#(B
using System;
namespace Project1
{
struct strctPet
{
public int intPetName;
public string PetName {
get {
return PetName;
}
set {
PetName = value;
}
}
}
class Class
{
static void Main(string[] args)
{
//# $B%3%s%Q%$%kDL$k"*<B9T;~%(%i!<(B
strctPet myPet1 = new strctPet();
myPet1.PetName = "Jon";
//# $B%3%s%Q%$%k%(%i!<(B
strctPet myPet2 = new strctPet();
myPet2.intPetName = "Jon";
}
}
}
$B%(%s%H%j%]%$%s%H$G!"%m%8%C%/$H$7$F$OF1$8$3$H$7$F$$$k$N$G$9$,!"(B
$BA0<T$O%3%s%Q%$%k$,DL$j!"8e<T$O%3%s%Q%$%k$,DL$j$^$;$s!#(B
strctPet$B!!9=B$BN$N%W%m%Q%F%#<BAuIt$G!"L@$i$+$K(B string $B7?$r(B int $B7?$KBeF~$7$h$&$H(B
$B$7$F$$$k$H;W$&$N$G$9$,!#!#!#(B
$B$I$&$G$7$g$&$+!)(B
Masat.
$B$b$7!"@bL@$7$F$$$?$@$1$kJ}$$$i$C$7$c$$$^$7$?$i8f4j$$$7$^$9!#(B
$B5$$K$7$J$1$l$P$=$l$G$$$$$N$+$b$7$l$^$;$s$,!"!"0l1~!#(B
using System;
namespace Project1
{
struct strctPet
{
public int intPetName;
public string PetName {
get {
return PetName;
}
set {
PetName = value;
}
}
}
class Class
{
static void Main(string[] args)
{
//# $B%3%s%Q%$%kDL$k"*<B9T;~%(%i!<(B
strctPet myPet1 = new strctPet();
myPet1.PetName = "Jon";
//# $B%3%s%Q%$%k%(%i!<(B
strctPet myPet2 = new strctPet();
myPet2.intPetName = "Jon";
}
}
}
$B%(%s%H%j%]%$%s%H$G!"%m%8%C%/$H$7$F$OF1$8$3$H$7$F$$$k$N$G$9$,!"(B
$BA0<T$O%3%s%Q%$%k$,DL$j!"8e<T$O%3%s%Q%$%k$,DL$j$^$;$s!#(B
strctPet$B!!9=B$BN$N%W%m%Q%F%#<BAuIt$G!"L@$i$+$K(B string $B7?$r(B int $B7?$KBeF~$7$h$&$H(B
$B$7$F$$$k$H;W$&$N$G$9$,!#!#!#(B
$B$I$&$G$7$g$&$+!)(B
Masat.