![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
1
hello小鱼儿
脚踏实地
展开
-
C++读取bit
#include <iostream> using namespace std; typedef struct db { unsigned int a:2; }test; int main() { test k; k.a =1; k.a = k.a << 2; cout << k.a << endl; system("pause...原创 2019-04-16 22:55:24 · 1767 阅读 · 0 评论 -
面额拼凑 C++ 数量有限
之前的一道笔试题,关于面额拼凑的,但是与其他题目不同的是这道题的面额不是无数的,而是有固定的数量,其中1,5,10,20,50,100分别对应的数量为6,5,4,3,2,1,不知道对不对。。。 #include <iostream> #include <vector> using namespace std; int main() { int N; i...原创 2019-08-09 10:36:49 · 313 阅读 · 0 评论