返回值作为标志
摘要:
函数的返回值不仅可以作为数值使用,也可以作为函数执行过程中的一种标志,反映函数执行成功与否或者是否满足执行条件/*函数返回值不仅可以作为数值使用也可以作为一种执行成功与否或者是否符合条件的标志*/#include #include using namespace std;int fun(int a,... 阅读全文
posted @ 2015-10-03 18:10 张明明_1 阅读(154) 评论(0) 推荐(0)
posted @ 2015-10-03 18:10 张明明_1 阅读(154) 评论(0) 推荐(0)
posted @ 2015-10-03 14:32 张明明_1 阅读(157) 评论(0) 推荐(0)
posted @ 2015-10-03 14:23 张明明_1 阅读(448) 评论(0) 推荐(0)
posted @ 2015-10-03 11:30 张明明_1 阅读(299) 评论(0) 推荐(0)
posted @ 2015-10-03 10:20 张明明_1 阅读(1340) 评论(0) 推荐(0)