开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
gcc
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
结构初始化问题
喂入的资料(Input):
预期的正确结果(Expected Output):
错误结果(Wrong Output):
程式码(Code):(请善用置底文网页, 记得排版)
正确版:http://ideone.com/jb3AQP
错误版:http://ideone.com/VEUexX
这两个code,差别在于错误版是struct 后,
直接给一个结构变量start,
然后再设定start这个初始值,
但是compiler以后却不能过,这是为什么?
因为把初始值(14、15行)拿掉后,又可以compiler。
补充说明(Supplement):