2017-04-16から1日間の記事一覧

eclipseにデバッガをインストール

>はまった。できない。 1)brewのインストール ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"2)gdbのインストール brew install gdb 証明書を作成する Keychain Accessを開きます。 (Applications/Utilitiesデ…

vectorクラス、動的配列

動的に配列サイズが拡張される #include <vector> #include <iostream> void printAll(const std::vector<int>&); int main() { using std::vector; vector<int> ary(10); ary[0] = 1; // 配列のような使用が可能 ary.at(1) = 2; // ary[1] = 2とほぼ等価 printAll(ary); ary.resize(2); </int></int></iostream></vector>…