&
※自分用メモ ※引用元「ローベルのC++入門講座」 #include <iostream> #include <string> using namespace std; void obamaTerm(int &x) //int &xを変数にすることで「参照」という変数が作れる。 { if(2009 <= x && x <= 2016) x -= 2008; else x = 0; } void presidency() //</string></iostream>…
※自分用メモ ※引用元「ローベルのC++入門講座」 #include <iostream> #include <string> using namespace std; void obamaTerm(int &x) //int &xを変数にすることで「参照」という変数が作れる。 { if(2009 <= x && x <= 2016) x -= 2008; else x = 0; } void presidency() //</string></iostream>…