2017-05-01から1ヶ月間の記事一覧
今まで雑にwin32コンソールでCを書いていたがVisual StudioでCを書くときのメモ 空のsolutionを作る 空のproject追加 main.cを追加 projectのプロパティ -> 構成プロパティ -> C/C++ -> すべてのオプション -> コンパイル言語の選択 を Cコードとしてコンパ…
メモとして #include<functional> #include<vector> #include<iostream> using namespace std; template<class T> vector<vector<T>> combinations_with_replacement(const vector<T> n, int r) { vector<vector<T>> result; function<void(const vector<T>, int, vector<T>, vector<vector<T>>*)> f = [&f](const vector<T> n, …</t></vector<t></t></void(const></vector<t></t></vector<t></class></iostream></vector></functional>