Skus dat delay napr. 200 (alebo inu, optimalnu hodnotu). WinXP totiz spusta DOSove programy len virtualizovane, preto nemusia bezat plynule. Mozes tiez skusit nemazat celu obrazovku, len riadok. Alebo cisla vypisuj pod seba.
spravil som taky jdnoduchy program,ktory nahodne vyberie znaky(cisla,male velke pismena),ulozi do retazca a zobrazi ho na obrazovku na urcitu dobu a smaze obrazovku,potom nacita dalsi retazec a zase zobrazi.... potrebujem aby sa mi retazec zobrazil na stotinu sekudny ,teda delay(100),je to kratka doba a niekedy mi ten retazec nevypise a niekedy hej,uz ked davam delay(500) alebo viac tak v pohode vypise,da sa s tym nieco spravit aby mi to zobrazil vzdy ked pouzijem delay(100) ?
dik
Predvolena farba textu nie je biela, ale svetlosiva. Mozes pouzit konstantu LightGray alebo priamo cislo 8.
ok dik a ked pouzijem prikaz textcolor(cislo farby); ako potom naspat nastavim "default" farbu textu, viem ze biela ma cislo 15, ale to nie je presno to co tam bolo pred tym, je to trocha hrubsie, ako povodna biela a text je potom trochu menej citatelny.
Sound bude hrat kym sa nespusti NoSound alebo kym neskonci program. Tu je prikad:Sound(1000);
Delay(2000);
NoSound;
este mam jednu otazku. ked pouzijem prikaz sound, aky pocet Hz mam zadat? skusal som 20, 50, 500 ba aj 500 000 ale stale nic nehra
tak som spravil novy status bar aj s peknou farbou pisma :) a hlavne v nom uz nepouzivam primitivnu metodu delay(150); write('=');program status;
uses crt;
var
x: integer;
BEGIN
writeln('press ENTER to start'); readln; textcolor(10);
write('| | loading...'); textcolor(12);
delay(2000);
for x:= 2 to 35 do begin
delay(150);
gotoxy(x,3);
write('=');
end;
gotoxy(37,3); delay(1000);
textcolor(12);
write(' done! ');
END.
http://www.youtube.com/watch?v=ieP9nv821mQ
tak tu mate ten staus bar ako to vyzera
urobil som taky celkom pekny status bar, tu mate zdrojovy kod:
program status;
uses crt;
BEGIN
writeln('press ENTER to start'); readln;
write('| | loading...');
delay(3000);
gotoxy(2,3);
delay(100); write('='); delay(100); write('='); delay(100); write('='); delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');delay(100); write('=');
END.
mozete kopirovat ak chcete!!!
a ak by ste chceli vidiet, ako to vyzera tak som to uploadol aj na youtube, ale uz musis ist do skoly tak vam sem dam link okolo 5 hod