30 lines
662 B
C
30 lines
662 B
C
#include <stdio.h>
|
|
#include <mbctype.h>
|
|
#include <mbstring.h>
|
|
|
|
#define ZEN(x) 130*256+(x-1+32)
|
|
|
|
unsigned int alphabet[26] = {
|
|
ZEN('A'),ZEN('B'),ZEN('C'),ZEN('D'),ZEN('E'),
|
|
ZEN('F'),ZEN('G'),ZEN('H'),ZEN('I'),ZEN('J'),
|
|
ZEN('K'),ZEN('L'),ZEN('M'),ZEN('N'),ZEN('O'),
|
|
ZEN('P'),ZEN('Q'),ZEN('R'),ZEN('S'),ZEN('T'),
|
|
ZEN('U'),ZEN('V'),ZEN('W'),ZEN('X'),ZEN('Y'),
|
|
ZEN('Z')
|
|
};
|
|
|
|
#define SIZE sizeof( alphabet ) / sizeof( unsigned int )
|
|
|
|
void main()
|
|
{
|
|
int i;
|
|
unsigned int c;
|
|
|
|
_setmbcp( 932 );
|
|
for( i = 0; i < SIZE; i++ ) {
|
|
c = _mbctombb( alphabet[ i ] );
|
|
printf( "%c", c );
|
|
}
|
|
printf( "\n" );
|
|
}
|