shout!.c

来自「C.Game.Programming.For.Dummies.原码」· C语言 代码 · 共 26 行

C
26
字号
#include <stdio.h>
#include <ctype.h>

void main()
{
    char string[] = "You don't have to shout!";
    char c;
    int x;

    x = 0;

    puts(string);

    while(c != '!')
    {
        c = string[x];
        c = toupper(c);
        string[x] = c;
        x++;
    }

    puts(string);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?