#include <stdio.h>

int main(){
    char file_path[100]="/home/mz/我的/书籍/C语言/谭老C程序设计/第十章/10-3/t.txt";
    FILE* fp=fopen(file_path,"w+");
    char ch;

    while(ch=getchar(),ch!='!'){
        if(ch>='a'&&ch<='z')fputc(ch-'a'+'A',fp);
        else fputc(ch,fp);
    }
    fclose(fp);
    return 0;
}