Do While a.AtEndOfStream <> True 的問題if not objts.atendofstream then '這句話書上說是檢查是否到達文件結尾counts=clng(objts.readline)end if 。但我覺得要是把那個 not 去掉的話更好理解,請問能不能去掉那個not ,還有要是去掉那個not 后 if objts.atendofstream 又是什么意思的呀?謝謝啦!

熱心網友

if not的語句就是后面的not x如果成立,則執行下面的語句。如果把not去掉,就是if x成立了。則x為真時執行下面的語句。所以,not在其中起的就是非的意思。如not 0,則為真。not 1則為假。為真時執行下面的語句