标题:[求助]应该如何做?
只看楼主
dawei322
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2006-10-25
得分:0 

呵呵 学习

2006-10-31 15:37
xqyy
Rank: 1
等 级:新手上路
帖 子:221
专家分:0
注 册:2006-11-8
得分:0 

using System;
using System.windows.Forms;
public class textbox
{
private string t;
private string a;
private demial c;
private int q;
public textbox(string tile,string author,demial cost, int quantity )
{
t=tile;
a=author;
c=cost;
q=quantity;
}
public string Tile
{
set{t=value;}get{return t;}
}
public string Author
{
set{a=value;}get{return a;}

}
public demial Cost
{
set {c=value;}get{return c;}
}
public int Quantity
{
set{q=value;}get{return q;}
}
public demial Price()
{
retun Cost*1.25;

}
static void Main()
{ private string output="";
textbox bookshop=new textbox(string tile,string author,demial cost, int quantity );
output+=string.format("{0}零售价为{1}",Tile+Author+Cost+Quantity,Pric());

Messagebox.show(output);


}
}

[url=http://www.][我乐表情库 www.]创建自己的表情库,表情包下载,个性签名,牛逼头像,经典小游戏,QQ皮肤下载,注册后还可以在线免费看电影[/url]
2006-11-11 16:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-98500-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.338552 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved