原帖由 "aspbiz" 发表:
GCC扩展:
_attribute_ (())
原帖由 "aspbiz" 发表:
GCC扩展:
long long var; //64bit
_attribute_ (())
switch (var)
{
case 0 ... 2:
break;
case 3 ... 5:
break;
default:
}
是三点,且前后有空格。
原帖由 "woshi410" 发表:
大哥,在Visual C++下可以不,好像不行![]()
![]()
![]()
![]()
原帖由 "aero" 发表:
jourmen ,^_^,见到你真高兴。
上面的那些特性。是C99标准提供的,还是gcc编译器的扩展呢?
如果是标准就好了。^_^。
另外,那些标准从哪里可以搞到啊?
原帖由 "jourmen" 发表:
是c99的标准,gcc还没有完全支持c99!
你可以google "c99 standard"
http://home.tiscalinet.ch/t_wolf/tw/c/c9x_changes.html
http://www.softintegration.com/demos/chstandard/c99.html
http://www.schellon..........
原帖由 "woshi410" 发表:
没办法,visual stuido下用的是if else搞的.
解决方案:
if()
else if()
else if()
else if()
else if()
else if()
else if()
else if()
else if()
else if()
else if()
else if()
else
累死我了..........
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |