codonmotvisao
22-12-2010, 01:22 AM
tớ tìm thấy link này, thấy cũng giống, mọi người vào tham khảo xem sao
http://nhdien.wordpress.com/2010/06/02/maple-tim-d%C6%B0%E1%BB%9Dng-di-ng%E1%BA%AFn-nh%E1%BA%A5t-theo-thu%E1%BA%ADt-toan-dijkstra/
hayyeuadi
22-12-2010, 02:08 PM
ukm thé àh thế làm tới đâu rùi
codonmotvisao
24-12-2010, 09:27 PM
um.tui đề về mô phỏng đường đi ngắn nhất.hix.cũng chưa làm được nhìu.code tui đã viết đâu
smile_or_cry
25-12-2010, 08:38 AM
dijkstra - mô phỏng pp tìm đường dijkstra
anna_softbank32
25-12-2010, 10:10 AM
ukm thé àh thế làm tới đâu rùi
__________________
Download Phan mem (http://soft444.com), Dich vu Thiet ke Website (http://dvthietkewebsite.com)
codonmotvisao
25-12-2010, 11:13 AM
đúng rùi.anh có tài liệu đề tài nì ko, bảo e mới.hixhix.em ko hiểu gì cả...
anna_softbank32
25-12-2010, 11:13 AM
ukm thé àh thế làm tới đâu rùi
__________________
Download Phan mem (http://soft444.com), Dich vu Thiet ke Website (http://dvthietkewebsite.com)
codonmotvisao
27-12-2010, 01:23 AM
ây.vậy bạn biết về đề tài của tớ ah
tuananh_tlu
27-12-2010, 09:56 AM
tớ tìm thấy link này, thấy cũng giống, mọi người vào tham khảo xem sao
http://nhdien.wordpress.com/2010/06/02/maple-tim-d%C6%B0%E1%BB%9Dng-di-ng%E1%BA%AFn-nh%E1%BA%A5t-theo-thu%E1%BA%ADt-toan-dijkstra/
Thì ra người bạn cùng đề tài với mình là Đặng Hiền - Tin 5, Mình cũng là theo bài đó rồi nhưng mà cô giáo hướng dẫn bảo là không đúng. Mình đang làm lại, còn code thì mình cũng có rồi nếu bạn lấy thì mình gửi qua Yahoo cho.
Code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<graphics.h>
#include<dos.h>
#include"dijkstra.h"
void main()
{
int mh=0,mode=0; int i1,j1,k1,s1;
int c0=0;
initgraph(&mh,&mode,"BGI");
initMouse();
background(); c0=0;
showMouse();
c1=0;
q=0;q2=0; c2=0; initArrayTS(); n=0;
while(1)// //DUNG VONG LAP VO TAN KHI DUNG CHUOT
{
Locate();
On_mose_over1(x1,y1);
clickMouse(s,x,y);
if(s)
{
chonMenu1(x,y); c2=q2;
if (c2==1)
{
Batdau:
if (c1==0)
{
MenuDT();q=0; q2=0;useWin(0);
while (q2==0)//c1==0)
{
Locate();
On_mose_over0(x1,y1);
clickMouse(s,x,y);
if(s) chonMenu0(x,y);
}
c1=q2; q2=0; q=0; Status(c1);useWin(1);
}
if (c0==1) rewrite();
nutVexong();
vedothi:
xoaStatus(); inStatus(10,5,"Ve do thi");
c2=1; c3=0;
q=0;
while(c2==1)
{
Locate();
mouseOver(x1,y1,5,50,65,70,"Ve Xong",1);
clickMouse(s,x,y);
VeDT(s,x,y,c2);
if(rightClick(x,y)) goto huongdan;
}
q=0; c2=0;
xoaStatus();
}
if (c2==2&&n!=0&&useMouse==1)
{
xoaStatus(); useWin(0);
inStatus(10,5,"Luu vao File");
File(1);
for(i=0;i<30;i++) F[i]=NULL; i=0;
while(c2==2){
useMouse=0; s=0;
XuatTenFile(F[i],1);
}
useWin(1);
xoaStatus();
}
if (c2==3&&useMouse==1)
{
xoaStatus();useWin(0);
inStatus(10,5,"Mo File do thi");
File(2);
for(i=0;i<30;i++) F[i]=NULL; i=0;
while(c2==3){
useMouse=0; s=0;
XuatTenFile(F[i],2);
}
xoaStatus();useWin(1);
}
if (c2==4&&n>0&&useMouse==1)
{
xoaStatus();useWin(0);if (c0==1) rewrite();
inStatus(10,5,"Xem ma tran trong so");
s=0; MTTS();
while(c2==4)
{
Locate();
clickMouse(s,x,y);
if (s) c2=0;
}
hideMouse(); xuatHinh(x3,y3); showMouse();Menu();
xoaStatus(); useWin(1);
}
if (c2==5&&n>1&&useMouse==1)
{
xoaStatus();useWin(0);
inStatus(10,5,"Xet duong di trong do thi");
xetDuongdi(); S=0; s=0; useMouse=0;
chonDinhS(-1);T=0; q3=0;
chonDinhT(S);
if (q3==1){
if (c0==1) rewrite();
dijkstra(); xoaStatus();
useWin(1);
inKQ();
c0=1;
}
useWin(1);
}
if (c2==6)
{
huongdan:
xoaStatus();useWin(0);
inStatus(10,5,"Huong dan");
q=0;q2=0;q3=0; HuongDan(5);
while(q2==0)
{
Locate();
On_mouse_overHD(x1,y1);
clickMouse(s,x,y);
if(s) thoatHD(x,y);
}
q=0,q2=0;
xoaStatus();useWin(1);
if(c2==1) goto vedothi;
c2=0;
}
if (c2==7)
{
hideMouse();
setfillstyle(0,7); bar(5,50,635,435);
c0=0;c1=0;
q=0;q2=0; c2=0; initArrayTS(); n=0;
showMouse();
goto Batdau;
}
}
if(!s) {q2=0;}
}
hideMouse();
closegraph();
}
"Sưu tầm trên mạng"