PROGRAMMING/C#.NET
[0221과제] 수퍼팩(C#)
마마필로
2011. 2. 23. 00:41
///////////////////////////////////미완성 입니다.////////////////////////////////////////
using System;
namespace CS0221
{
class SuperPack
{
static void Main(string[] args)
{
Emp b = new Emp("이름","나이","키","IQ");
b.OutEmp;
}
}
}
struct Emp
{
public string NAME;
public int AGE;
public double height;
public double IQ;
public Emp(string aName, int aAge, double aHeinght, double aIQ)
{
Name = aName;
Age = aAge;
Height = aHeight;
IQ = aIQ;
}
public void OutEmp()
{
Console.WriteLine("이름 : {0}, 나이 : {1}, 키 : {2}, IQ : {3}", Name, Age, Height, IQ);
}
}