返回意味着什么?! [英] What does return mean here ?!

查看:134
本文介绍了返回意味着什么?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if(current == NULL)

{

cout<<"找不到要删除的元素 << endl;

返回;

}

解决方案

这意味着退出该功能。


如果我把break,那么会有什么不同? ?!


和这个片段它有点无用,不是吗?!

当有其他陈述时它会完成工作,是的?!

if(current==NULL)
{
cout<<"Can''t find the element to be deleted " <<endl;
return;
}

解决方案

It means exit the function.


and what will be the difference if i put "break;" ?!


and and this snippet it''s kinda useless,isn''t it ?!
it does the job when there are other statements,yeah ?!


这篇关于返回意味着什么?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆