s*t
2 楼
i have an EB1-b I140 pending since Feb 2011 ... and now my EB2 got approved.
Do I need to withdraw my EB1-b case (I will have two A#) and how to?
Thanks.
Do I need to withdraw my EB1-b case (I will have two A#) and how to?
Thanks.
l*o
3 楼
ooops
d*i
4 楼
至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
return a value"
int yy=0;
int test_func()
{
if(yy>0)
return 1;
}
而且奇怪的是它能正常运行,无疾而终。
int dd=test_func();
接受返回值的dd还是默认值,没受影响。
不理解啊。
求指点。谢谢!
return a value"
int yy=0;
int test_func()
{
if(yy>0)
return 1;
}
而且奇怪的是它能正常运行,无疾而终。
int dd=test_func();
接受返回值的dd还是默认值,没受影响。
不理解啊。
求指点。谢谢!
d*p
7 楼
Cool news - a sign of Mac's increased adoption by engineering customers :-)
c*4
9 楼
gxgx
a*a
12 楼
re
d*n
14 楼
编译器接受了某个代码并不代表代码是正确的。
首先看看test_func()在C的abstract machine上是如何运行的,if(yy>0)是false,
所以程序会执行到 "}", 然后标准规定(n1570 6.9.1):
If the } that terminates a function is reached, and the value of the
function call is used by
the caller, the behavior is undefined.
int dd = test_func()这条语句正好符合上边的描述,所以你的代码
里存在未定义行为,C标准允许编译器做任意的事情。
【在 d******i 的大作中提到】
: 至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
: return a value"
: int yy=0;
: int test_func()
: {
: if(yy>0)
: return 1;
: }
: 而且奇怪的是它能正常运行,无疾而终。
: int dd=test_func();
首先看看test_func()在C的abstract machine上是如何运行的,if(yy>0)是false,
所以程序会执行到 "}", 然后标准规定(n1570 6.9.1):
If the } that terminates a function is reached, and the value of the
function call is used by
the caller, the behavior is undefined.
int dd = test_func()这条语句正好符合上边的描述,所以你的代码
里存在未定义行为,C标准允许编译器做任意的事情。
【在 d******i 的大作中提到】
: 至少vc对以下的烂函数很宽容,只是个编译期warning - "not all control paths
: return a value"
: int yy=0;
: int test_func()
: {
: if(yy>0)
: return 1;
: }
: 而且奇怪的是它能正常运行,无疾而终。
: int dd=test_func();
z*o
15 楼
GXGX!!!
baozi pls
baozi pls
Y*G
16 楼
x86上return xxx就是将xxx放到寄存器EAX。调用者看EAX来获得函数的返回值。
如果没有return语句等于执行隐含的return语句,返回值无定义,是垃圾。
如果没有return语句等于执行隐含的return语句,返回值无定义,是垃圾。
f*n
21 楼
gxgx!!!
do u have lawyer? u can get ans from him. my personal take is yes.
do u have lawyer? u can get ans from him. my personal take is yes.
t*y
23 楼
GXGX!!!
baozi pls
baozi pls
d*8
25 楼
祝贺你。
x*e
31 楼
gongxi!我觉得你应该withdraw你的EB1。
L*a
33 楼
cong
rebaozi
rebaozi
h*8
35 楼
恭喜恭喜
e*m
36 楼
恭喜,包子·
c*y
38 楼
gxgx!
G*e
39 楼
congrats
w*e
41 楼
gxgx
相关阅读
请问*.wb3是什么文件?用什么来读?Re: [转载] 问一问题how to use make file in Visual c++有用Eclipse的嘛?怎么将linked list 存储到文件中去呀Three C/C++ Programming QuestionsRe: [转载] Google desktop中HTML文件的thumbnailhelp for Matlab figuresconversion(c++)ft, why help with obvious HW questions?Help: any good decompiler for DLLtimer(linux/g++)?c++ rand() 一问Help C++ Template function link error .为什么用try catch不住exception?请教一个Socket Programming 问题(C language)请教个问题如何计算1000的阶乘[转载] Re: 问个土问题吧Ask a g++ compilation qestion