不会跑 [英] wont run

查看:60
本文介绍了不会跑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这将编译没有错误,调试没有错误 - 只是在它运行时没有真正做任何事情

展开 | 选择 | Wrap | 行号

解决方案


这将编译没有错误,调试没有错误 - 只是在运行时没有真正做任何事情

展开 | 选择 | Wrap | 行号


< blockquote class =post_quotes>
这将编译没有错误,调试没有错误 - 只是在运行时没有真正做任何事情

展开 | 选择 | Wrap | 行号


这是因为你的功能我void类型。将其更改为int并使其返回总和。


Savage



返回总和?好吧,我试过这个,它仍然没有做任何事情

展开 | 选择 | Wrap | 行号


this will compile with no errors, debug no errors- just doesnt really do any thing when it runs

Expand|Select|Wrap|Line Numbers

解决方案

this will compile with no errors, debug no errors- just doesnt really do any thing when it runs

Expand|Select|Wrap|Line Numbers


this will compile with no errors, debug no errors- just doesnt really do any thing when it runs

Expand|Select|Wrap|Line Numbers


It''s becasue ur function is of void type.Change it to the int and make it return the sum.

Savage

return the sum? well, i tried this and it still didnt do anything

Expand|Select|Wrap|Line Numbers


这篇关于不会跑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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