关于今天比赛第一题

学术版

c++11 停用 c++14 移除
by haraki @ 2021-09-20 19:50:53


C++14不支持gets吧,换11试试?
by 渡鸦2007 @ 2021-09-20 19:51:04


```cpp string s; getline (cin, s); ```
by aleph_blanc @ 2021-09-20 19:51:50


@[许多](/user/230825) `get()`非常危险,可能导致缓冲区溢出,强烈建议使用`cin.get`或`getline()`
by 一只大龙猫 @ 2021-09-20 19:51:51


C++14把gets移除了吧
by bykem @ 2021-09-20 19:52:08


鞋鞋,已收到
by 许多 @ 2021-09-20 19:53:22


@[许多](/user/230825) > `std::gets` was deprecated in C++11 and removed from C++14. > > gets在c++11中被弃用,c++14中移除 > > ——[std::gets - cppreference.com](https://en.cppreference.com/w/cpp/io/c/gets)
by qwq自动机 @ 2021-09-20 19:54:56


@[一只大龙猫](/user/511907) 您好。。。请问,这个红字是怎么打出来的呀![](//图.tk/q)
by aleph_blanc @ 2021-09-20 19:55:01


那个 ~~我用的char s[]~~
by 许多 @ 2021-09-20 19:55:24


@[许多](/user/230825) 请使用 `fgets` 替代。 `fgets(s,sizeof(s),stdin);`。
by 囧仙 @ 2021-09-20 19:56:21


| 下一页