Hệ thống thông tin và giải trí Việt Nam
 Tìm theo: Video Bài hátCa sĩ Nhạc sĩ Lời bài hát Album Website
  Chính xác

 Tìm Video theo ca sĩ, diễn viên, tên phim... như: Cẩm Ly, Tinh Võ Môn, Vân Sơn...
Đăng nhập
Nickname:
Mật mã:   
Tìm kiếm:


> Nhảy Audition = Pascal nè
Đánh giá  3
Ngo Tri Duc
bài viết 31 Dec 08 11:37
Gửi vào: #1


Ông Trùm
Group Icon

Nhóm: Members
Bài viết: 1038
Tham gia: 18-April 08
Đến từ: Việt Trì
Thành viên thứ: 110586
Tiền mặt: 55442000
Thời gian tải nhạc: 0 h
Y!M : hat with me


Anh em copy đoạn code này vào pascal nhé nhảy được đấy
CODE
Uses crt;
const
bpm=178;
leng=180;


var
scoreplus:longint;
clock:longint absolute $0000:$046C;
time,score,start:longint;
npf,ngr,nco,nb,nm:longint;
dem,perfectx,rythm,l,j,i,lv:longint;
c:char;
deldance,press:boolean;
misses:integer;
s,s1:string;
f:set of 1..10;


{ ================================================== ============= }

procedure hd;
begin

clrscr;
i:=10;

gotoxy(17,i);
textcolor(red); writeln('WELL COME TO AUDITION, WAS WRITTEN BY PASCAN');

inc(i);
gotoxy(2,i);

textcolor(white); writeln('Ban nhan phim ',#24,' ',#25,' ',#26,' ',#27 ,' theo hien thi cua man hinh');

inc(i);
gotoxy(2,i); writeln('Nhan khoang trang de ghi diem khi con tro vao o trung tam');

inc(i);
gotoxy(2,i); write('De vao che do');

textcolor(5); write(' DEL ');
textcolor(white); writeln('(So diem tang len nhieu hon) ban nhan phim Delete');

inc(i);
gotoxy(2,i); writeln('Khi do phim do xuat hien ban phai nhay nguoc lai voi hien thi');

inc(i);
gotoxy(2,i); write('De ket thuc chuong trinh ban hay nhan phim ');

textcolor(yellow); writeln('q');
textcolor(white);

readln;
clrscr;


end;
{ ================================================== ============= }
procedure finish;
var q:byte; cont:boolean;
begin

gotoxy(15,10); writeln('FINISH MOVE');
gotoxy(34,12);
s1:=s;
f:=[];
repeat
cont:=true;
q:=random(9)+1;
if not (q in f) then
begin
f:=f+[q]; delete(s1,q,1);
cont:=false;
case ord(s[q]) of
24: insert(chr(25),s1,q);
25: insert(chr(24),s1,q);
26: insert(chr(27),s1,q);
27: insert(chr(26),s1,q);
end;
end;
until not cont;
for q:=1 to lv do
begin
if q in f then textcolor(red) else textcolor(lightgray);
write(s1[q]);
end;
end;
{ ================================================== ============= }
procedure clear;
begin
textcolor(0);
gotoxy(33,12); writeln('-----------------------------');
textcolor(lightgray);
end;
{ ================================================== ============= }
procedure perfect;
begin
misses:=0;
inc(npf);

inc(perfectx);

textcolor(lightred);
gotoxy(34,10);

if perfectx<=0 then
begin
scoreplus:=150*(lv+1)*4+ord(lv>1)*lv*lv*lv*lv;
writeln('PERFECT');
end else
begin
scoreplus:=250*(lv+1)*perfectx*4+ord(lv>1)*lv*lv*lv*lv;
writeln('PERFECT X ',perfectx);
end;
if lv =10 then score:=score+30000;
textcolor(lightgray);
clear;
end;
{ ================================================== ============= }
procedure great;
begin
misses:=0;
inc(ngr);
perfectx:=-1;

textcolor(green); gotoxy(34,10); writeln('GREAT');
scoreplus:=150*(lv+1)*3+ord(lv>1)*lv*lv*lv;

if lv=10 then score:=score+28000;
clear;
end;
{ ================================================== ============= }
procedure cool;
begin
misses:=0;
inc(nco);
perfectx:=-1;
textcolor(blue); gotoxy(34,10); writeln('COOL');

scoreplus:=150*(lv+1)*2+ord(lv>1)*lv*lv;

if lv =10 then score:=score+25000;
clear;


end;
{ ================================================== ============= }
procedure bad;
begin

misses:=0;
inc(nb);
perfectx:=-1;
textcolor(red);
gotoxy(34,10);
writeln('BAD');
scoreplus:=150*(lv+1)+ord(lv>1)*lv;
if lv =10 then score:=score+22500;
clear;


end;
{ ================================================== ============= }
procedure create;
begin
textcolor(blue); gotoxy(43,13); writeln('C');
textcolor(lightgray);
end;
{ ================================================== ============= }
procedure remove;
begin
textcolor(0); gotoxy(43,13); writeln('C');
textcolor(lightgray);
end;
{ ================================================== ============= }
procedure again;
var q:byte;
begin
j:=1;
gotoxy(34,12); textcolor(lightgray);

if ((not deldance) or (lv<6)) and ( not (lv=10) ) then writeln(s)
else
for q:=1 to lv do
begin
if q in f then textcolor(red) else textcolor(lightgray);
write(s1[q]);
end;
textcolor(lightgray);
end;
{ ================================================== ============= }
procedure miss;
begin
if misses<>3 then inc(nm);
misses:=3;
textcolor(red); gotoxy(34,10); write('MISS');
textcolor(lightgray);
perfectx:=-1;
clear;
scoreplus:=0;


end;
{ ================================================== ============= }
procedure replace(var j:longint; x:longint);
begin

textcolor(green); gotoxy(j+33,12); write(chr(x));
textcolor(lightgray);
inc(j);
end;
{ ================================================== ============= }
procedure perform;
var p,q:byte; cont:boolean;
begin
s1:=s;
f:=[];
for p:=1 to 3 do
repeat
cont:=true;
q:=random(lv-1)+1;
if not (q in f) then
begin
f:=f+[q]; delete(s1,q,1);
cont:=false;
case ord(s[q]) of
24: insert(chr(25),s1,q);
25: insert(chr(24),s1,q);
26: insert(chr(27),s1,q);
27: insert(chr(26),s1,q);
end;
end;
until not cont;
for q:=1 to lv do
begin
if q in f then textcolor(red) else textcolor(lightgray);
write(s1[q]);
end;
end;
{ ================================================== ============= }
procedure timeout;
var o:longint;
begin
o:=(clock-start) div 18;
gotoxy(19,16);
if (leng-o) mod 60 <10 then writeln((leng-o) div 60,':0',(leng-o) mod 60:1)
else
writeln((leng-o) div 60,':',(leng-o) mod 60);
end;
{ ================================================== ============= }
procedure screen;
var p:byte;
begin
textcolor(lightblue);
gotoxy(15,11); writeln('{ }');
gotoxy(40,11); writeln('°±ÛÛÛÛÛ±°');

textcolor(white);
gotoxy( (time*41 div rythm) +15,11);writeln('Û');
textcolor(lightgray);


end;
{ ================================================== ============= }
procedure count;
var x:integer;
begin

x:=time*123 div rythm +3;
if (j>lv) and (misses=1) then
begin
case x of
90:perfect;
87..89,91..93:perfect;
81..86,94..99:cool;
78..80,100..102:bad;
else miss;
end; { end case }
if deldance and (lv>5) then scoreplus:=(scoreplus*3) div 2;
score:=score+scoreplus;
end else
if (misses<>0) and (misses<>3) then
begin
misses:=2;
miss;
end;
end;
{ ================================================== ============= }
procedure main;
begin
score:=0;
deldance:=false;
lv:=1;
time:=0;
rythm:=9000 div bpm;
randomize;
textcolor(lightgray); gotoxy(24,16); writeln('(',bpm:3,' bpm)');
dem:=0;
repeat
screen;
timeout;
textcolor(0); gotoxy(49,14); writeln('----------------------');
textcolor(lightgray); gotoxy(49,14); writeln(score);
if (time mod rythm=0) then
begin
misses:=1;
time:=0;
if lv=10 then
begin
lv:=6;
dem:=0;
end else
if (dem = (lv div 2 +trunc(sqrt(lv))) ) then
begin
dem:=0;
inc(lv);
end;
s:='';
j:=1;
textcolor(0); gotoxy(15,10); writeln('---------------------------------------');
textcolor(lightgray); gotoxy(34,12);

for i:=1 to lv do s:=s+chr(random(4)+24);

if deldance and (lv >5) and (lv<10) then perform else writeln(s);

if lv= 10 then finish;
if lv < 10 then
begin

gotoxy(15,10);
writeln('Level ',lv);
inc(dem);
end;
end;
if keypressed then c:=readkey else c:=#0;
if (ord(c )=72) and (ord(s[j])=24) then replace(j,24) else
if (ord(c )=80) and (ord(s[j])=25) then replace(j,25) else
if (ord(c )=77) and (ord(s[j])=26) then replace(j,26) else
if (ord(c )=75) and (ord(s[j])=27) then replace(j,27) else
if (ord(c )=83) then deldance:= not deldance else
if (ord(c )=32) then count else
if (c<>#0) and (j<=length(s)) then again;

if deldance then create else remove;

delay(90);
inc(time);
if (time*41 div rythm +1> 34) and ((j<=lv) or (misses=1)) and (misses<>0) then miss;
until (c='q') or (clock-start>leng*18);
end;
{ ================================================== ============= }
begin
clrscr;
npf:=0;
ngr:=0;
nco:=0;
nb:=0;
nm:=0;
hd;
start:=clock;
perfectx:=-1;
clrscr;
textcolor(lightgray);
main;
gotoxy(10,18);
writeln('Perfect Great Cool Bad Miss Score');
gotoxy(13,19);
writeln(npf:2,' ',ngr:2,' ',nco:2,' ',nb:2,' ',nm:2,' ',score:8);
readln;
end.  
Xem Video: nhay audition pascal ne
Đặt làm trang chủ


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies(1 - 8)
Gia Nguyen
bài viết 31 Dec 08 03:20
Gửi vào: #2


Trai Đã Có Vợ Ko Đi Lăng Nhăng
Group Icon

Nhóm: Members
Bài viết: 1276
Tham gia: 2-April 08
Đến từ: †™_Ñhà kô Šố--Phố Kô ╥ên_™†
Thành viên thứ: 99876
Tiền mặt: 16062800
Thời gian tải nhạc: 0 h
Y!M : hat with me


èo nhìn thấy pascal là thấy oải lắm rồi

Tài sản:



[Xem tất cả tài sản]

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Phương Trinh
bài viết 04 Feb 09 08:54
Gửi vào: #3


Nhóc Con
Group Icon

Nhóm: Members
Bài viết: 49
Tham gia: 1-February 09
Thành viên thứ: 232244
Tiền mặt: 7010
Thời gian tải nhạc: 0 h
No Yahoo Messenger


Không chạy được trong môi trường Win ảo. Tại sao?


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
__M@ster__
bài viết 23 Jun 09 09:32
Gửi vào: #4


LoP86.FoRum-viEt.nEt
Group Icon

Nhóm: Members
Bài viết: 668
Tham gia: 15-June 09
Đến từ: Làng mưa
Thành viên thứ: 270148
Tiền mặt: 505350
Thời gian tải nhạc: 0 h
Y!M : hat with me


Cho hỏi pascal là ji` zdạ ?????

Tài sản:



[Xem tất cả tài sản]

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
__M@ster__
bài viết 24 Jun 09 08:55
Gửi vào: #5


LoP86.FoRum-viEt.nEt
Group Icon

Nhóm: Members
Bài viết: 668
Tham gia: 15-June 09
Đến từ: Làng mưa
Thành viên thứ: 270148
Tiền mặt: 505350
Thời gian tải nhạc: 0 h
Y!M : hat with me


tại sao mình ko paste vào được@@@@@@@@@@@@@@@@@@@ kì quá

Tài sản:



[Xem tất cả tài sản]

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
giang tử đạo
bài viết 28 Nov 09 06:18
Gửi vào: #6


Nhóc Con
Group Icon

Nhóm: Members
Bài viết: 7
Tham gia: 28-November 09
Thành viên thứ: 308655
Tiền mặt: 1060
Thời gian tải nhạc: 0 h
No Yahoo Messenger


wow. đc nữa hả
để về test thử koi
ai viết code mà hay vậy


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lưu Quang Dũng
bài viết 15 Dec 09 12:43
Gửi vào: #7


Nhóc Con
Group Icon

Nhóm: Members
Bài viết: 5
Tham gia: 11-December 09
Thành viên thứ: 312413
Tiền mặt: 160
Thời gian tải nhạc: 0 h
No Yahoo Messenger


QUOTE(__M@ster__ @ 23 Jun 09 09:32) *

Cho hỏi pascal là ji` zdạ ?????

Pascal là một ngôn ngữ lập trình cơ bản


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
†…Wh䆧ëë…†
bài viết 26 Dec 09 10:06
Gửi vào: #8


Dân Sành Điệu
Group Icon

Nhóm: Members
Bài viết: 244
Tham gia: 26-January 09
Thành viên thứ: 229826
Tiền mặt: 52660
Thời gian tải nhạc: 0 h
No Yahoo Messenger


Là sao hok hỉu gì hết.Chạy trên Win thường dc mà.
Àh!
Ý ông nói là ví dụ như Win chính đang làm việc thì qua Win Ảo chơi vẫn dc đúng ko?


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
le hu ng
bài viết 06 Feb 10 11:12
Gửi vào: #9


Nhóc Con
Group Icon

Nhóm: Members
Bài viết: 1
Tham gia: 6-February 10
Thành viên thứ: 329010
Tiền mặt: 10
Thời gian tải nhạc: 0 h
No Yahoo Messenger


bạn ơi cho mình hỏi tại sao mình đánh đúng như code mà sao lại cứ báo lỗi?
cụ thể là lỗi ở đoạn:

clock: longint absolute $0000:$046c;

và cụ thể hơn là nó báo lỗi
"Fatal : Syntax eror, ";" expected but ":" found "

thế đó!
nó cứ báo lỗi ở dấu :
giúp mình nghen mình thích món này lắm!


User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
Trắc nghiệm

 

Đặt Việt Giải Trí làm trang chủ

make money easy
Download hàng triệu game và phần mềm miễn phí





Hình ngẫu nhiên


Hình ảnh Đọc truyện Giao lưu kết bạn Xem video Tin tức sự kiện Game - Trò chơi Âm nhạc
- Siêu Mua Archive - Sitemap - Bản rút gọn - Kho Game Time is now: 19th March 2010 - 12:48 AM