C++
一只大黄猫
这个人很懒,但是他写了点什么。
展开
-
【C++】常用库函数(reverse,unique,lower_bound,upper_bound)
reverse翻转函数,unique去重函数,lower_bound,upper_bound函数原创 2023-10-20 22:25:06 · 114 阅读 · 1 评论 -
【C++】>> 与 << 符号作用
2 >> 1:相当于2/2。99 >> 1: 相当于 99/2 向下取整为49。99 >> 2:相当于 99/pow(2,2)向下取整为24。999 >> i:相当于999 / pow(2,i)。整数 >> i:相当于将这个整数化为二进制整数,并去掉这个数的末尾的 i 位数字。原创 2023-10-15 18:03:08 · 3587 阅读 · 2 评论 -
【C++】字符串中输入空格
/这种输入方式可以带空格。//这种输入方式不能存在空格。原创 2023-10-10 13:00:53 · 3605 阅读 · 1 评论