1、

#include <stdio.h>

int main(void)
{
    char ch;
    
    ch = getchar();
    while(ch != '\n')
    {
        if(ch == ' ')
        {
            putchar(ch);
        }
        else
        {
            putchar(ch + 1);
        }
        ch = getchar();
    }
    putchar(ch);
    
    return 0;
}

c语言中getchar()、putchar()函数例子_#include