gets() function is not available in Visual studio 2015 community

后端 未结 4 1929
-上瘾入骨i
-上瘾入骨i 2021-02-08 13:29

I have faced a compiler error(c3861) in my newly installed Visual studio community 2015 IDE:

I just want to use gets() function from stdio.h library, a

4条回答
  •  我寻月下人不归
    2021-02-08 13:54

    gets and_getws are removed from the beginning of vs 2015 because these functions are obsolete. Alternative functions are gets_s and _getws_s.

提交回复
热议问题