zoukankan
html css js c++ java
一道程序运行结果题
class
Car
{
private
int
iYear
=
0
;
private
string
sName
=
""
;
public
Car()
{
}
public
Car(
int
year,
string
name)
{
Car oTemp
=
new
Car();
Car oStructure
=
new
Car(oTemp);
this
.iYear
=
year;
this
.sName
=
name;
Console.WriteLine(
"
Structureone
"
);
Console.WriteLine(
this
.iYear );
Console.WriteLine(
this
.sName );
}
public
Car(Car ocar)
{
this
.iYear
=
ocar.iYear;
this
.sName
=
ocar.sName;
Console.WriteLine(
"
Structuretwo
"
);
Console.WriteLine(
this
.iYear );
Console.WriteLine(
this
.sName );
}
class
Program
{
static
void
Main(
string
[] args)
{
Car oCarOne
=
new
Car(
1983
,
"
Eagle
"
);
Car oCarTwo
=
new
Car(oCarOne);
Console.Read() ;
}
}
- Make people around you successful is the biggest contribution to ourselves. -
查看全文
相关阅读:
UPC12617 卡片
mcmf的dijkstra板子(来自PHY学长)
UPC9630 Mad Veterinarian
UPC8173【 哈希和哈希表】Three Friends
UPC9655 Plug It In!
UPC8428 网格VI
UPC4248【数论】数字迷阵
UPC4247【数论】普通递归关系
SPOJ
hdu 5992 Finding Hotels (kdTree)
原文地址:https://www.cnblogs.com/zencorn/p/1102273.html
最新文章
除虫药水(简单)
烽火传递(单调队列优化dp,然而蒟蒻用一个优先队列做)
ZOJ----3471Most powerful(简单状压dp)
POJ3311 ---Hie with the Pie(状压dp)
NOIP模拟 --切木板
NOIP模拟 ----平衡三进制
CQOI2006---简单题(真tm简单!)
AtCoder Regular Contest 102 F Revenge of BBuBBBlesort!
花园【SCOI2017期望DP入门题】
概率期望dp入门题---游戏
热门文章
SQL三表连接查询与集合的并、交、差运算查询
详解SQL Server连接(内连接、外连接、交叉连接)
PHP中global与$GLOBALS['']的区别
示例浅谈PHP与手机APP开发,即API接口开发
[函数] 目录遍历和计算文件个数的简单函数
详解 Discuz 的 PHP经典加密解密函数 authcode
php获取远程文件内容的函数
[函数] PHP取二进制文件头快速判断文件类型
PHP生成桌面快捷方式,保存一个网页至桌面上成为快捷方式
UPC13522 Favourite Number
Copyright © 2011-2022 走看看