1.变量引用练习 2.if语句练习 3.while循环猜年龄 练习1 练习2 4.for循环猜年龄 ...
分类:
其他好文 时间:
2018-03-03 12:29:05
阅读次数:
198
练习7.6 练习7.7 见上 练习7.8 read里面涉及到revenue的计算,item.revenue被更新,因此定义为普通的引用;而print只是输出对象的值,故可以声明为常量引用; 练习7.9 见本章最后的程序吧。 练习7.10 判断data1和data2的输入是否正确(非空或者输入错误), ...
分类:
编程语言 时间:
2017-08-04 22:57:39
阅读次数:
216
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication1
{
classProgram
{
staticvoidMain(string[]args)
{
inti=10;//值类型
intj=10;//必须初始化
intk;//不需要初始化
int[]iarr={..
分类:
其他好文 时间:
2014-07-08 09:42:06
阅读次数:
221