Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コードサンプル 1:
float i=1.1f; int j=static_cast<int>(i); cout << j<< endl;
コード例 2:
float i=1.1f; int j=(int)i; cout << j<< endl;
C++ での変換に関するこれらのコード サンプルの違いは何ですか?