Сообщение от :
void to4ka(char filename[10])
{
int x[1000],y[1000];
int pointx[80],pointy[25];
int f,i_prov=0;
int sent=1;
int k=0,i=0;
char ch;
proverka_file(filename);
clrscr();
f=open(filename, O_RDONLY | O_BINARY, S_IWRITE | S_IREAD);
do
{
read(f, &ch, 1);
if (isalpha(ch)==0 & ch!=' ' & ch!='\n' & ch!='\r')
{
textcolor(LIGHTRED);
cprintf("%c",ch);
x[i]=wherex()-1;y[i]=wherey();
k++;i++;i_prov++;
}
else {textcolor(LIGHTGRAY);cprintf("%c",ch);}
if (ch=='.'){textbackground(BLACK);
textcolor(WHITE);
cout<<"\n";
cprintf("In %d sentence --> %d symbols\n", sent++,k);
k=0;pointx[sent]=wherex();pointy[sent]=wherey();}
textcolor(LIGHTGRAY);
}
while (!eof(f));
i=0;char ch1;
gotoxy(1,1);
_setcursortype(_SOLIDCURSOR);
while (ch1!='0')
{
if (i<i_prov) {gotoxy(x[i],y[i]);i++;ch1=getch();}
else {i=0;gotoxy(1,1);}
}
close(f);
_setcursortype(_NORMALCURSOR);delay(150);
switcher();
}