Entries from 2019-02-14 to 1 day
C++のConditional Operator、コードの行数が減っていいですね。 if elseをアホみたいに書いてしまってたが、今度からこれ使お。。。 例えば #include <iostream> using namespace std; int main() { int comp1 {10}; int comp2 {20}; if (comp1 < comp2) cout << "larg</iostream>…
C++のConditional Operator、コードの行数が減っていいですね。 if elseをアホみたいに書いてしまってたが、今度からこれ使お。。。 例えば #include <iostream> using namespace std; int main() { int comp1 {10}; int comp2 {20}; if (comp1 < comp2) cout << "larg</iostream>…