0
void *recordDownLog(void *args) {
while (!isFinished && !isWaitFinished) {
isFinished = true;
int i = 0;
Sleep(sleepTime);
while (i <= downNum) {
if (downEndSize[i]<maxSize[i]) {
isFinished = false;
}
i++;
}
if (isFinished || isEnded) {
if (isFinished) {
writeDownFile(1);
}
else {
writeDownFile(2);
}
}
else {
writeDownFile(0);
}
}
cout << "end" << endl;
isWaitFinished = true;
}
應該返回什麼值。錯誤C4716:recordDownLog:必須返回一個值
如果沒有要返回的值,請將返回類型更改爲「void」 – InternetAussie
僅供參考:void *與「void」不同 – UnholySheep
@InternetAussie:答案部分的答案。這是評論部分。 –