方法一参考网址:https://blog.csdn.net/whappymanlynn/article/details/50930461

方法一:在此处加上“_CRT_NONSTDC_NO_DEPRECATE”  和“ _CRT_SECURE_NO_WARNINGS”即可。


error C4996: 'read': The POSIX name for this item is deprecated.


方法二:文件开头加上#pragma warning(disable: 4996)即可。

error C4996: 'read': The POSIX name for this item is deprecated.


自己测试是没有问题的。


相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-08-15
  • 2021-09-13
  • 2022-12-23
  • 2021-06-09
  • 2021-07-25
  • 2022-12-23
猜你喜欢
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案