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

leetcode657

#include 

using namespace std;
bool judgeCircle(string moves){
    int up=0;
    int lr=0;

    for(int i=0;i>str;
    //把bool型输出成true或者false 而不是 1,0
    cout<
C++中bool类型输出成true或者false,而不是1,0_第1张图片

你可能感兴趣的:(LeetCode,编程)