仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 607|回复: 8
打印 上一主题 下一主题

[学习教程] 来一篇关于NET的C#中unknown的完成

[复制链接]
飘飘悠悠 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-16 14:25:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
来吧!老师们!我代表千千万万的asp.net/C#的初学者在这里呼唤着!usingSystem;
namespacedirtysalt
{
publicclassCar//classofcar,hasattributeofweightandspeed
{
privateintweight;
privateintspeed;
publicCar(intWeight,intSpeed)
{
weight=Weight;
speed=Speed;
}
publicvoidsetweight(intWeight)
{
weight=Weight;
}
publicvoidsetspeed(intSpeed)
{
speed=Speed;
}
publicintgetspeed()
{
returnspeed;
}
publicintgetweight()
{
returnweight;
}
};

publicclassSportcar:Car//inheritclassofCar,hasattributesofweight,speed,color
{
privatestringcolor;
publicSportcar(intWeight,intSpeed,stringColor):base(Weight,Speed)
{
setweight(Weight);
setspeed(Speed);
color=Color;
}
publicvoidsetcolor(stringColor)
{
color=Color;
}
publicstringgetcolor()
{
returncolor;
}
publicstaticvoidMain()
{
Carcar=newCar(100,100);
Sportcarsportcar=newSportcar(100,200,"blcak");//herehasaproblem
Console.WriteLine("carsweightis"+car.getweight());
Console.WriteLine("carsspeedis"+car.getspeed());
Console.WriteLine("sportcarsweightis"+sportcar.getweight());
Console.WriteLine("sportcarsspeedis"+sportcar.getspeed());
Console.WriteLine("sportcarsspeedis"+sportcar.getcolor());
}
}
}
另外,小型软件代码重用价值低,没有必要跨平台;大型软件,有严格的规划、部署,不可以随意跨平台。
兰色精灵 该用户已被删除
沙发
发表于 2015-1-18 14:22:10 | 只看该作者
代码逻辑混乱,难于管理:由于ASP是脚本语言混合html编程,所以你很难看清代码的逻辑关系,并且随着程序的复杂性增加,使得代码的管理十分困难,甚至超出一个程序员所能达到的管理能力,从而造成出错或这样那样的问题。
飘飘悠悠 该用户已被删除
板凳
 楼主| 发表于 2015-1-26 23:41:00 | 只看该作者
由于CGI程序每响应一个客户就会打开一个新的进程,所以,当有多个用户同时进行CGI请求的时候,服务器就会打开多个进程,这样就加重了服务器的负担,使服务器的执行效率变得越来越低下。
蒙在股里 该用户已被删除
地板
发表于 2015-2-5 03:05:57 | 只看该作者
我的意思是.net好用,从功能上来说比JAVA强还是很明显的。
金色的骷髅 该用户已被删除
5#
发表于 2015-2-11 03:44:06 | 只看该作者
JSP/Servlet虽然在国内目前的应用并不广泛,但是其前途不可限量。
简单生活 该用户已被删除
6#
发表于 2015-3-1 21:09:14 | 只看该作者
逐步缩小出错代码段的范围,最终确定错误代码的位置。
小妖女 该用户已被删除
7#
发表于 2015-3-11 00:28:14 | 只看该作者
逐步缩小出错代码段的范围,最终确定错误代码的位置。
老尸 该用户已被删除
8#
发表于 2015-3-17 17:09:37 | 只看该作者
如今主流的Web服务器软件主要由IIS或Apache组成。IIS支持ASP且只能运行在Windows平台下,Apache支持PHP,CGI,JSP且可运行于多种平台,虽然Apache是世界使用排名第一的Web服务器平台。
再现理想 该用户已被删除
9#
发表于 2015-3-24 16:21:59 | 只看该作者
由于CGI程序每响应一个客户就会打开一个新的进程,所以,当有多个用户同时进行CGI请求的时候,服务器就会打开多个进程,这样就加重了服务器的负担,使服务器的执行效率变得越来越低下。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-3 14:35

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表