当前位置:首页 > 编程语言 > C\C++ > 正文内容

scanf返回值被忽略

C\C++3年前 (2021-04-19)

方法一:

添加引用:

#pragma warning(disable:4996)

方法二:

使用 scanf_s 或 scanf_f