| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1700 人关注过本帖
标题:[求助]应该如何做?
只看楼主 加入收藏
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
快速回复:[求助]应该如何做?
数据加载中...
 
   



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

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