文件复制,输入输出-c

为什么输出的字符串后面有个四方块?


#include 
#include 
int main(){
    FILE *in,*out;
    char ch,infile[10],outfile[10];
    printf("输入读入文件的名字:");
    scanf("%s",infile);
    printf("输入输出文件的名字:");
    scanf("%s",outfile);
    if((in=fopen(infile,"r"))==NULL){
        printf("无法打开此文件\n");
        exit(0);
    } 
    if((out=fopen(outfile,"w"))==NULL){
        printf("无法打开此文件\n");
        exit(0);
    } 
    while(!feof(in)){
        ch=fgetc(in);
        fputc(ch,out);
        putchar(ch);
    }
    putchar('\n');
    fclose(in);
    fclose(out);
    return 0;
}

img

而不是computer and c?