謝謝老師,最近從C++起航篇一直跟著老師學(xué)到這里,代碼也跟著敲了一遍,確實(shí)學(xué)了不少知識(shí),謝謝老師,謝謝慕課網(wǎng)^_^
2017-01-09
嚇?biāo)牢伊?,?duì)于還是小白,從遠(yuǎn)征系列到現(xiàn)在,真的感覺兩個(gè)月的收貨挺大的。全都是自己自愿去學(xué)習(xí)的,感覺很開心
2016-12-17
n個(gè)點(diǎn)的最小生成樹有n-1個(gè)邊,這是概念,n個(gè)點(diǎn)連n-1條線
2016-12-15
個(gè)人覺得隊(duì)列一點(diǎn)都不復(fù)雜,就一個(gè)進(jìn)隊(duì)出隊(duì),會(huì)比遞歸好理解一點(diǎn)
2016-12-13
這個(gè)地方有一點(diǎn)看不懂,點(diǎn)A在所屬數(shù)組的下標(biāo)怎么可以用到nodeSets中去取這個(gè)數(shù)組,這
兩個(gè)位置根本不是一個(gè)層面上的東西啊
兩個(gè)位置根本不是一個(gè)層面上的東西啊
2016-12-12
int CMap::getMinEdge(vector<Edge> edgeVec){
int minWeight=edgeVec[0].m_iWeightValue;
int edgeIndex=0;
int count=0; //用于判斷有沒有執(zhí)行循環(huán)
int minWeight=edgeVec[0].m_iWeightValue;
int edgeIndex=0;
int count=0; //用于判斷有沒有執(zhí)行循環(huán)
2016-12-12
for(int i=0;i<edgeVec.size();i++){
if(!edgeVec[i].m_bSelected){
if(minWeight>=edgeVec[i].m_iWeightValue){
minWeight=edgeVec[i].m_iWeightValue;
edgeIndex=i;
count++;
}
}
}
if(count==0){
return -1;
}
return edgeIndex;
}
if(!edgeVec[i].m_bSelected){
if(minWeight>=edgeVec[i].m_iWeightValue){
minWeight=edgeVec[i].m_iWeightValue;
edgeIndex=i;
count++;
}
}
}
if(count==0){
return -1;
}
return edgeIndex;
}
2016-12-12