エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
ぐだぐだ std::bitsetの使い方サンプル
1 //std::bitset使用サンプル 2 #include<iostream> 3 #include<bitset> 4 5 using namespace std; 6 in... 1 //std::bitset使用サンプル 2 #include<iostream> 3 #include<bitset> 4 5 using namespace std; 6 int main(){ 7 //8bitで131の表現 8 bitset<8> b1(131); 9 10 //表示 11 cout<<"b1="<<b1<<endl; 12 13 //2ビット目を1に 14 b1.set(2); 15 //7bit目を0に 16 b1.reset(7); 17 18 //unsigned long に変換 19 cout<<"b1="<<b1<<", and in unsigned long: "<<b1.to_ulong()<<endl; 20 21 //bit反転 22 b1.fl
2013/02/25 リンク