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++;
相关文章
相关标签/搜索