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. -
查看全文
相关阅读:
【KMP】Period
【KMP】Cyclic Nacklace
【KMP】Oulipo
【KMP】Number Sequence
二分
Stock 贪心经典 Zoj2921
D. Block Tower
烦人的dp
搜索
hdu 一个人的旅行
原文地址:https://www.cnblogs.com/zencorn/p/1102273.html
最新文章
bzoj2049 LCT入门
hdu5486 Difference of Clustering 暴力
hdu5493 queue 贪心+离线+线段树统计个数
hdu5489 Removed Interval dp+线段树优化
hdu5492 find the path dp
hdu5491 the next 贪心水题
hdu3726 Graph and Queries
bzoj1500 维修数列 splay
codeforces#343 C. Famil Door and Brackets dp
寒假总结。。。
热门文章
codeforces#343 D. Babaei and Birthday Cake
bzoj1269 文本编辑器 splay
hdu1890 Robotic Sort splay
HNOI2004 宠物收养所 splay
poj3468 splay区间修改和查询
CentOS搭建记录
Struts2初学习记录
Sublime Text 3配置记录
【KMP+DP】Count the string
【KMP】剪花布条
Copyright © 2011-2022 走看看