- 主题:刚上大学,麻烦推荐学习C语言的编译软件
C 和 C++ 是两种独立的语言。各自有独立的标准。vs对cpp新标准支持的再好对你写C程序有个屁用。
【 在 z16166 的大作中提到: 】
: 老黄历了把,现在vs对cpp新标准支持很积极的
--
FROM 219.143.129.*
他哪里说不一样了? 他说 VS 支持 C++ 新标准,和我说的 VS 不支持 C 新标准有啥关系吗?
【 在 shouge111 的大作中提到: 】
: 您是一线程序员吗?要给权威最新的回答啊,后面有人说现在情况不一样了
:
--
FROM 219.143.129.*
麻烦把帖子看完再喷,我后面有说明
新手一般还到不了要关注标准差异的地步,只不过有人提出来了要考虑这点,那就讨论一下。
【 在 dormouseBHU 的大作中提到: 】
: C 和 C++ 是两种独立的语言。各自有独立的标准。vs对cpp新标准支持的再好对你写C程序有个屁用。
:
--
修改:z16166 FROM 114.240.244.*
FROM 114.240.244.*
《选型》
【 在 z16166 的大作中提到: 】
: 好家伙,就讨论个问题,你把整个帖子里的人都骂完了
: 这种选型问题,必然是各有各的选择,各有各的理由,摆出来讨论一下再正常不过了
: 另外,楼主上那课的老师有可能指定开发环境
: ...................
--
FROM 115.171.229.*
哦,不太懂,谢谢!
【 在 dormouseBHU 的大作中提到: 】
: 他哪里说不一样了? 他说 VS 支持 C++ 新标准,和我说的 VS 不支持 C 新标准有啥关系吗?
:
--
FROM 112.32.81.*
Support for C11 and C17 standards is available in Visual Studio 2019 version 16.8 and later.
https://docs.microsoft.com/en-us/cpp/overview/install-c17-support?view=msvc-160
【 在 dormouseBHU 的大作中提到: 】
: 他哪里说不一样了? 他说 VS 支持 C++ 新标准,和我说的 VS 不支持 C 新标准有啥关系吗?
:
--
FROM 114.240.244.*
VLA在C11中变成了可选特性,VC目前还不支持可选特性,但是承诺后续会增加一些:
While there is currently no support for any C11 optional features, we are committed to providing the most impactful optional features in future releases.
对于为啥不支持VLA,MS自己有一段说辞:
Variable Length Arrays
Astute readers will note that VLAs are also not supported. Variable length arrays are generally less efficient than comparable fixed sized arrays, and generally inefficient compared to equivalent malloc(), when safely and securely implemented. VLAs provide attack vectors comparable to those of the infamous gets() — deprecated and destined to removal — for opportunities of “shifting the stack” and other exploits. For these reasons we intend not to support VLAs as an optional feature in C11.
这个blog也说了VC在C上面为何这么一直“懒”“矬”的原因:
For many years Visual Studio has only supported C to the extent of it being required for C++.
blog地址:
https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-support-arriving-in-msvc/
【 在 dormouseBHU 的大作中提到: 】
: 连 VLA 都不支持,VS也好意思说自己支持 C11。。。
:
--
FROM 114.240.244.*
对于c语言,最好的编译器就是gcc,新手用source insight +gcc, 装个虚拟机。
--
FROM 223.72.80.*
对,现在用 Linux 的门槛这么低,早摸早好。
【 在 wdrq83 (红妞妞) 的大作中提到: 】
: 对于c语言,最好的编译器就是gcc,新手用source insight +gcc, 装个虚拟机。
--
FROM 163.125.197.*