/*
函数
* struct order
* {
* public string itenName;
* public int unitCount;
* public double unitCost;
* }
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _6_8_4
{
class Program
{
struct order
{
public string itemName;
public int nuitCount;
public double unitCost;
public double end()
{
double max=nuitCount*unitCost;
return max;
}
}
static void Main(string[] args)
{
order book;
book.itemName = "C++ Primer 4th";
book.nuitCount = 100;
book.unitCost = 75;
Console.WriteLine("书的总金:{0}", book.end());
}
}
}