|
发表于 2021-3-5 11:16:18
|
显示全部楼层
本楼为最佳答案
本帖最后由 jackz007 于 2021-3-5 12:40 编辑
tx,你的代码原样照搬,用 gcc 编译没有任何问题!
- D:\0002.Exercise\C>g++ -o x x.c
- D:\0002.Exercise\C>x
- @
- / \
- * *
- * *
- * *
- * * * * * *
- * * * * * * * *
- * * * * * * * * * *
- * *
- * *
- * * * *
- * * * * * *
- D:\0002.Exercise\C>
复制代码
用 vc 2019 编译也没有问题
- D:\0002.Exercise\C>cl x.c
- 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.28.29334 版
- 版权所有(C) Microsoft Corporation。保留所有权利。
- x.c
- Microsoft (R) Incremental Linker Version 14.28.29334.0
- Copyright (C) Microsoft Corporation. All rights reserved.
- /out:x.exe
- x.obj
- D:\0002.Exercise\C>x
- @
- / \
- * *
- * *
- * *
- * * * * * *
- * * * * * * * *
- * * * * * * * * * *
- * *
- * *
- * * * *
- * * * * * *
- D:\0002.Exercise\C>
复制代码 |
|