#include <assert.h>
#include <locale.h>
#include <stdio.h>
#include <wchar.h>
#include <wctype.h>

int
main ()
{
 char *rl
 = setlocale (LC_ALL, "");
 assert (rl != 0);

 wint_t c;
 while ((c = getwchar ()) != WEOF) {
 putwchar (towupper (c));
 }
 assert (! ferror (stdin));

 return 0;
}

Оценка - 1.0 (4)

2015-11-09 • Просмотров [ 925 ]