1、怎么把bool输出true 和 false,而不是0、1

 使用boolalpha
1     bool d = 1;
2     cout << boolalpha << d << endl;

 

 

2、如此简洁的代码

int gcb(int a, int b)
{
    return b ? gcb(b, a % b) : a;
}

 

3、32大算法

https://www.idckx.com/big_data/26026.html

 

4、friend声明的函数是静态的,为什么呢???

 

5、将一些经常用的算法写一下

  比如,将一个很多位的整数拆成一位,一位。

posted on 2020-10-05 22:52  Coderon  阅读(79)  评论(0编辑  收藏  举报