C++中bool類型輸出成true或者false,而不是1,0

leetcode657c++ #include <bits/stdc++.h> using namespace std; bool judgeCircle(string moves){ int up=0; int lr=0; for(int i=0;i<moves.length();i++){ if(moves[i]=='U') up++;
相關文章
相關標籤/搜索