关于C++中的gets
  • 板块学术版
  • 楼主JERRY_Feng
  • 当前回复5
  • 已保存回复5
  • 发布时间2022/2/27 23:31
  • 上次更新2023/10/28 07:33:18
查看原帖
关于C++中的gets
615016
JERRY_Feng楼主2022/2/27 23:31
#include<bits/stdc++.h>
using namespace std;

char x[5];


int main()
{
	gets(x);
	for(int i=4;i>=0;--i){
		printf("%c",x[i]);
	}
	return 0;
}

如上程序在洛谷提交会编译错误

2022/2/27 23:31
加载中...