return用法

这条语句return exit_success;编译出现:
warning C4700: local variable 'exit_success' used without having been initialized
求教高手

一、不及物动词 vi.

1、回,返回,归[(+to/from)]

She did not return home till eleven o'clock. 她十一点钟才回家。

2、重新发生;回复,恢复[(+to)]

The situation has returned to normal in the capital. 首都的局势已恢复正常。

3、归还,退回[(+to)]

4、回答;反驳

二、及物动词 vt.

1、还,归还;送回[(+to)][O1]

Have you returned the novel to the library?那本小说你还给图书馆了吗?

2、回答,回报;报答

We decided to return blow for blow.我们决定以牙还牙。

3、选举,选出[(+to)]

4、【律】(陪审团)正式宣布(裁决)

5、获得,产生(利润等)

The performance returned $2,000 over expenses.这场演出除去开支赢余2000元。

6、报告;申报

7、反射(光、声等)

8、回答说;反驳道

三、名词 n.

1、回,归,返回[C][U][(+from/to)

On his return he reported his findings to the committee.他一回来就向委员会报告调查结果。

2、还,归还[U]

3、回答;报答[U][C]

He expected no return when he decided to give us full support.他决定全力支持我们时并无图报之意。

4、回复;复发;恢复;再现[U][C]

She had a return of the heart attacks.她心脏病又发作了。

5、收益,利润;利息[P1]

6、报告书;申报;报表[C]

7、【英】来回票[C]

8、退货[P]

四、形容词 adj

1、返回的,回程的;来回的

2、报答的;回报的

The professor paid a return visit to his American colleague.教授回访了美国同事。

3、返回的,折回的

参考资料来源:百度百科-return

温馨提示:答案为网友推荐,仅供参考
第1个回答  2008-07-19
意思是变量 exit_success还没有初始化,你需要先初始化它,一般就是给它赋个值本回答被提问者采纳
第2个回答  2008-07-19
局部变量'exit_success'还没有初始化。
也就是说你在程序中没有对这个变量赋值或赋值的语句没有执行
第3个回答  2008-07-19
exit_success是局部变量,当然要初始化后才能用作返回值
第4个回答  2008-07-19
exit_success 没有定义 或者 没有赋值
相似回答