количество координат меняется переменной "n".
CODE:
string xs="xs";
string ys="ys";
string xf="xf";
string yf="yf";
char b=' ';
char c=';';
char d='[';
char f=']';
char g='=';
int q, w, e, r;
int n=0;
if (fopen ("c:\massiv.txt", "a")!=0)
{while(n<5)
{textbkcolor(255, 65280);
textout(0, 500, 400, "Навести курсор в нужные координаты и нажать 'Ё'", 0);
while(getkeystate(192)==0)sleep(10);
while(getkeystate(192)==1)sleep(10);
resettextout(1);
getmouse(q, w);
pause(500);
fwrite(xs);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(q);fwrite(c);fwrite(b);
fwrite(ys);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(w);fwrite(c);fwrite(b);
textbkcolor(255, 65280);
textout(0, 500, 400, "Навести курсор в нужные координаты и нажать 'Ё'", 0);
while(getkeystate(192)==0)sleep(10);
while(getkeystate(192)==1)sleep(10);
resettextout(1);
getmouse(e, r);
pause(500);
fwrite(xf);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(e);fwrite(c);fwrite(b);
fwrite(yf);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(r);fwrite(c);fwrite(b);
pause(500);
fwrite(ENDL);
n++;
}
fclose();
}
string xs="xs";
string ys="ys";
string xf="xf";
string yf="yf";
char b=' ';
char c=';';
char d='[';
char f=']';
char g='=';
int q, w, e, r;
int n=0;
if (fopen ("c:\massiv.txt", "a")!=0)
{while(n<5)
{textbkcolor(255, 65280);
textout(0, 500, 400, "Навести курсор в нужные координаты и нажать 'Ё'", 0);
while(getkeystate(192)==0)sleep(10);
while(getkeystate(192)==1)sleep(10);
resettextout(1);
getmouse(q, w);
pause(500);
fwrite(xs);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(q);fwrite(c);fwrite(b);
fwrite(ys);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(w);fwrite(c);fwrite(b);
textbkcolor(255, 65280);
textout(0, 500, 400, "Навести курсор в нужные координаты и нажать 'Ё'", 0);
while(getkeystate(192)==0)sleep(10);
while(getkeystate(192)==1)sleep(10);
resettextout(1);
getmouse(e, r);
pause(500);
fwrite(xf);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(e);fwrite(c);fwrite(b);
fwrite(yf);fwrite(d);fwrite(n);fwrite(f);fwrite(g);fwrite(r);fwrite(c);fwrite(b);
pause(500);
fwrite(ENDL);
n++;
}
fclose();
}