求助
查看原帖
求助
1543216
YuuAnn楼主2024/12/14 17:04
#include<stdio.h>
#include<string.h>
int main()
{
	char text[100],*ptr;
	scanf("%s",text);
	ptr=strupr(text);
	printf("%s",ptr);
	return 0;
}

为什么在dev上可以,但在洛谷上不可以,显示编译失败。 显示这个
/tmp/compiler_gj25gr45/src: 在函数‘int main()’中: /tmp/compiler_gj25gr45/src:7:6: 错误:‘strupr’ was not declared in this scope; did you mean ‘strstr’? 7 | ptr=strupr(text); | ^~~~~~ | st

2024/12/14 17:04
加载中...