回答編集履歴

1

誤字の修正

2017/09/03 00:55

投稿

raccy
raccy

スコア21784

answer CHANGED
@@ -1,6 +1,6 @@
1
1
  `std::stoi`で三番目の引数に`2`を指定すれば、2進数文字列を整数値に変換できます。
2
2
  [stoi - cpprefjp C++日本語リファレンス](https://cpprefjp.github.io/reference/string/stoi.html)
3
- **※ std::stoiはC++11からです。コンパイラ等の環境がC++11に対応していない場合は用できません。**
3
+ **※ std::stoiはC++11からです。コンパイラ等の環境がC++11に対応していない場合は使用できません。**
4
4
 
5
5
  ```C++
6
6
  #include <iostream>