Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
だから私はこのようなものを持っています:
while (scanf("somepattern",arg1,arg2)==2) { if(arg1==0) break; <code here> } if(scanf("someotherpattern")==1) { <code here> }
私の質問は次のとおりです。2 に等しいすべてのパターンを照合した後、scanf関数はファイル内のどこを指していますか? の「0」を消費したifかどうか。
scanf
if