开发平台(Platform): (Ex: Win10, Linux, ...)
xp
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
code block
问题(Question):
程式码交换位置后 执行出现错误
喂入的资料(Input):
1234
程式码(Code):(请善用置底文网页, 记得排版)
#include <stdio.h>
#include <stdlib.h>
main()
{
char str1[]="";
char *str2="您输入的字串如上";
printf("请输入字串:");
fgets(str1,80,stdin);
printf("%s",str1);
printf("%s",str2);
}
以上程式码 执行时 会出现错误