摘要:
由于函数的计算时形参,计算后就会被释放,使用平时我们是需要传出值来使函数的计算时有意义的。 但是如果规定不能有返回值,那该怎么办,一种就是定义全局变量,但是这个并不是很实用。 所以在大大的帮助下,我明白了只要传入引用就行了。 举个简单的例子: python include using namespa 阅读全文
摘要:
"题目" "代码入口" 以下是我改动的代码,大概就是main里面改成传递参数,print类里面是这次的主要部分,在这里面进行对文件的操作 main里面的内容 下面是print的头文件 下面是print.cpp文件 python include include include include incl 阅读全文
摘要:
题目:Creat a program that asks for the radius of a cricle and prints the area of that cricle.Using cin and cout.The whole program should be divided into 阅读全文