可能重複:
What does 「(void) new」 mean in C++?聲明「(void)startGuardBegin;」做什麼?
我不熟悉C++和我的方法簽名後立即不懂行:
int EAN13Reader::decodeMiddle(Ref<BitArray> row,
int startGuardBegin,
int startGuardEnd,
std::string& resultString)
{
(void)startGuardBegin;
...
}
什麼(void)startGuardBegin;
?一個方法invokation?
@ThiefMaster不是重複的,略有不同的使用'void':丟棄值與標記變量爲未使用。 –
不重複。 –