using System;
namespace ConsoleApplication1
{
public struct student
{
public int a;
public double c;
}
enum week
{
monday,tuesday,wednesday,thursday,friday,saturday,sunday
}
class Class1
{
static void Main(string[] args)
{
week day=week.friday ;
int aa=(int)day;
int bb=(int)week.saturday ;
Console.WriteLine ("{0},{1}",aa,bb);
student a,b;
a.a=1;
a.c=1.1;
b=a;
a.c =2.6;
Console.WriteLine ("{0} {1} {2} {3}",b.c,b.a ,a.a ,a.c );
Console.WriteLine ("{1} {0} {3} {2}",b.c,b.a ,a.a ,a.c );
}
}
} |