→ casko:Delphi?? 12/08 19:51
g[v].end(); w++) { if (distvec[*w] == -1) //
distance of *w from source not determined yet {
distvec[*w] = distvec[v]+1; q.push(*w); }
} } for (int j = 0; j < distvec.size(); j++) // print
distances from source cout << j << ": " << distvec[j] <<
endl;}// A driver to test the algorithm. Constructed graph is////
1// *// 0 2 / \// *-----*---*3//
| |// | |// 5*---*4////void
main(){ Graph g(6); g[0].push_back(2); g[1].push_back(3);
g[1].push_back(2); g[2].push_back(3); g[2].push_back(5);
g[2].push_back(1); g[2].push_back(0); g[3].push_back(1);
g[3].push_back(2); g[3].push_back(4); g[5].push_back(4);
g[4].push_back(5); g[4].push_back(3); g[5].push_back(2);
shortestpaths(g,1);}※ 引述《lalacoa (!!)》之銘言:
: 我主要是要能看跟錄,所以一定要usb電視盒不然就電視卡
: 目前預算最多是考慮廣圜的1280或康博u700
: 廣寰的便宜一點,不知道效果會不會差很多??
: 甚至考慮更便宜的,一千塊上下的那種電視卡
: (我是抱著能省則省,能用就好)
: 但又擔心會不會很爛...有沒有比較推薦的?
: ps.我的pc
: sempron2200+(1.8g)
: 記憶體768MB
: 顯示卡ATI 9550
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 173.56.121.140