, . , . .
, | |
25.03.2011 | |
194,0 K |
. ,
, , , , .
http://www.allbest.ru/
22
http://www.allbest.ru/
" "
' 㳿 ! , '.
, , -- ! - ', . , .
, - , , 1 ! , - , .
( . litera - ) - , , , .
, . , .
1.
, :
> ( , )
> ( )
> ( , )
> ( )
> ( ' )
> ( - )
> ( , , , ).
> ( - , )
> ( )
> ( )
> ( ' )
> ( ).
: ( -).
ISO 9: 1995 (E) .
, , - , . 32- - 8 (-, -, -, -, -, -s, -, -) 24 . (ISO/R9-1968 (), ISO 9:1995 (), 7.79-2000 , 16876-71, -2002, .
, (-v, -g, -g, -i, -, -h), (-w, -h, -g, -y, -i, -x).
|
˳ |
˳ |
|
1 |
, |
a, A |
|
2 |
, |
b, B |
|
3 |
, |
w, W |
|
4 |
, |
h, H |
|
5 |
, |
g, G |
|
6 |
, |
d, D |
|
7 |
, |
e, E |
|
8 |
, |
, |
|
9 |
, |
, |
|
10 |
, |
z, Z |
|
11 |
, |
y, Y |
|
12 |
, |
i, I |
|
13 |
, |
, |
|
14 |
, |
j, J |
|
15 |
, |
k, K |
|
16 |
, |
l, L |
|
17 |
, |
m, M |
|
18 |
, |
n, N |
|
19 |
, |
o, O |
|
20 |
, |
p, P |
|
21 |
, |
r, R |
|
22 |
, |
s, S |
|
23 |
, |
t, T |
|
24 |
, |
u, U |
|
25 |
, |
f, F |
|
26 |
, |
x, X |
|
27 |
, |
c, C |
|
28 |
, |
, |
|
29 |
, |
, |
|
30 |
, |
s, S |
|
31 |
, |
, |
|
32 |
, |
, |
|
33 |
|
' |
|
34 |
' () |
' () |
', .
, , , .
2.
. . ,
' . . .
3.
:
- Translit.cpp
- 6,42
ʳ - 270
:
.
' , .
, ,
- input.txt;
- 1
, . - .
:
stdio.h - / ;
stdlib.h - ;
string.h - ,
conio.h - , /
1. int main (void) - . .
2. ktl (char s) - , , .
3. ktl1 (char s) - , , .
*fp/*fp1 - FILE, , / .
k - int, , , , .
- char, ' .
- MS-DOS;
, , UKRDOS_2.
- , .
BORLAND C. , :
Compile (Alt+F9) - ;
Run (Ctrl+F9) - ;
Trace into(F7) - ;
-
http://www.allbest.ru/
22
http://www.allbest.ru/
4.
. ϳ ' :
, 1,2,3 4, . 1:
, , , Windows XP Borland C.
, 2:
. Right Shift.
ϳ Enter ' .
, , , 4. :
5.
:
1. input.txt : .
output.txt : Kyrsovy roboty vukonav Helew @rij.
2. : !.
: Sesi9 maj*e zakin4ulas6!.
, .
- : .
:
, .
.
.
UKRDOS_2.
˳
1. .. -
2. ., . -
3. - http://uk.wikipedia.org/wiki/
4. - http://lp.edu.ua/tc.terminology/TK_translit.htm
5. - http://lukom.org/Pages/Blog.aspx/transliteration
1
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
char ktl1(char s);
char ktl(char s);
void main(void)
{
m:
clrscr();
printf("\t\t\t ` ' ⥬:\n\n");
printf("\t\t\"' i i ⥪i\"\n\n");
printf("\n 1) ");
printf("\n 2) i ");
printf("\n 3)i ண ");
printf("\n 4)i 祢i=)");
printf("\n\n\ti 㭪 ");
int k;
switch(k=getch()){
case '1': clrscr();
char c,res1;
FILE *fp,*fp1;
if((fp=fopen("E:\\input.txt","r"))==NULL)
{
puts("i ");getch();
exit(1);
}
if((fp1=fopen("E:\\output.txt","w"))==NULL)
{
puts("ERROR");getch();
exit(1);
}
puts("', i⨢ i\n");
rewind(fp);
while(!feof(fp))
{
c=fgetc(fp);
putc(c,stdout);
res1=ktl1(c);
fputc(res1,fp1);
}
fclose(fp1);
fclose(fp);
getch();
goto m;
break;
case '2':
clrscr();
printf("i 祭 . i : ");
char x[256];
gets(x);
for(int i=0;i<strlen(x);i++){
x[i]=ktl(x[i]);
}
printf("\n' i i:%s",x);
getch();
goto m;
break;
case '3': exit(0);
case '4': clrscr();
puts("\n\t i ᯥ ७i ` ⢮");
puts(" i include.txt, i 㤥 ⢮७ ண ");
puts(" ⮬ 筮. i ⥪ i i Right Shift.");
getch();
break;
}
}
char ktl(char s)
{
char res;
switch (s) {
case '0': res = '0';break;
case '1': res = '1';break;
case '2': res = '2';break;
case '3': res = '3';break;
case '4': res = '4';break;
case '5': res = '5';break;
case '6': res = '6';break;
case '7': res = '7';break;
case '8': res = '8';break;
case '9': res = '9';break;
case '': res = 'A';break;
case '': res = 'B';break;
case '': res = 'V';break;
case '': res = 'H';break;
case '': res = 'D';break;
case '': res = 'E';break;
case '': res = '';break;
case '': res = '*';break;
case '': res = 'Z';break;
case 'I': res = 'I';break;
case '': res = '|';break;
case '': res = 'J';break;
case '': res = 'K';break;
case '': res = 'L';break;
case '': res = 'M';break;
case '': res = 'N';break;
case '': res = 'O';break;
case '': res = 'P';break;
case '': res = 'R';break;
case '`': res = 'S';break;
case ''': res = 'T';break;
case '': res = 'Y';break;
case '': res = 'F';break;
case '*': res = 'X';break;
case '-': res = 'C';break;
case '--': res = '4';break;
case '': res = 'W';break;
case '': res = '#';break;
case '': res = '@';break;
case '': res = '9';break;
case ' ': res = 'a';break;
case '': res = 'b';break;
case '': res = 'v';break;
case '': res = 'h';break;
case '': res = 'd';break;
case '': res = 'e';break;
case '': res = '';break;
case '': res = '*';break;
case '': res = 'z';break;
case '': res = 'u';break;
case 'i': res = 'i';break;
case '': res = '|';break;
case '': res = 'j';break;
case '': res = 'k';break;
case '': res = 'l';break;
case '': res = 'm';break;
case '': res = 'n';break;
case '': res = 'o';break;
case '': res = 'p';break;
case '': res = 'r';break;
case '': res = 's';break;
case '': res = 't';break;
case '': res = 'y';break;
case '': res = 'f';break;
case '': res = 'x';break;
case '': res = 'c';break;
case '': res = '4';break;
case '': res = 'w';break;
case '': res = '#';break;
case '': res = '6';break;
case '': res = '@';break;
case '': res = '9';break;
case ' ': res = ' ';break;
case ',': res = ',';break;
case '.': res = '.';break;
case '-': res = '-';break;
case ':': res = ':';break;
case ';': res = ';';break;
case '?': res = '?';break;
case '!': res = '!';break;
default: res = NULL;
}
return res;
}
char ktl1(char s)
{
char res1;
switch(s){
case '0': res1 = '0';break;
case '1': res1 = '1';break;
case '2': res1 = '2';break;
case '3': res1 = '3';break;
case '4': res1 = '4';break;
case '5': res1 = '5';break;
case '6': res1 = '6';break;
case '7': res1 = '7';break;
case '8': res1 = '8';break;
case '9': res1 = '9';break;
case '': res1 = 'A';break;
case '': res1 = 'B';break;
case '': res1 = 'V';break;
case '': res1 = 'H';break;
case '': res1 = 'D';break;
case '': res1 = 'E';break;
case '': res1 = '';break;
case '': res1 = '*';break;
case '': res1 = 'Z';break;
case '': res1 = 'I';break;
case '': res1 = '|';break;
case '': res1 = 'J';break;
case '': res1 = 'K';break;
case '': res1 = 'L';break;
case '': res1 = 'M';break;
case '': res1 = 'N';break;
case '': res1 = 'O';break;
case '': res1 = 'P';break;
case '': res1 = 'R';break;
case '': res1 = 'S';break;
case '': res1 = 'T';break;
case '': res1 = 'Y';break;
case '': res1 = 'F';break;
case '': res1 = 'X';break;
case '': res1 = 'C';break;
case '': res1 = '4';break;
case '': res1 = 'W';break;
case '': res1 = '#';break;
case '': res1 = '@';break;
case '': res1 = '9';break;
case '': res1 = 'a';break;
case '': res1 = 'b';break;
case '': res1 = 'v';break;
case '': res1 = 'h';break;
case '': res1 = 'd';break;
case '': res1 = 'e';break;
case '': res1 = '';break;
case '': res1 = '*';break;
case '': res1 = 'z';break;
case '': res1 = 'u';break;
case '': res1 = 'i';break;
case '': res1 = '|';break;
case '': res1 = 'j';break;
case '': res1 = 'k';break;
case '': res1 = 'l';break;
case '': res1 = 'm';break;
case '': res1 = 'n';break;
case '': res1 = 'o';break;
case '': res1 = 'p';break;
case '': res1 = 'r';break;
case '': res1 = 's';break;
case '': res1 = 't';break;
case '': res1 = 'y';break;
case '': res1 = 'f';break;
case '': res1 = 'x';break;
case '': res1 = 'c';break;
case '': res1 = '4';break;
case '': res1 = 'w';break;
case '': res1 = '#';break;
case '': res1 = '6';break;
case '': res1 = '';break;
case '': res1 = '9';break;
case ' ': res1 = ' ';break;
case ',': res1 = ',';break;
case '.': res1 = '.';break;
case '-': res1 = '-';break;
case ':': res1 = ':';break;
case ';': res1 = ';';break;
case '?': res1 = '?';break;
case '!': res1 = '!';break;
default: res1=NULL;
}
return res1;
Allbest.ru
. - , , .
[193,9 K], 05.03.2011. ѳ, . , - . .
[193,9 K], 19.01.2013. , . . . .
[145,6 K], 20.03.2011, . Mathemetica 5.0.
[5,0 M], 25.10.2012RC5. ', : , . - . .
[4,4 M], 28.10.2010MS-DOS. . . , . .
[1,0 M], 22.06.2012"". . , . . . . .
[460,9 K], 04.03.2014, . . ' . .
[1,1 M], 14.09.2012#. . Visual Studio 2008 Express. DES. RC2. RIPEMD-160. .
[1,7 M], 25.10.2012. c Turbo Pascal. - . .
[1,3 M], 23.06.2010