C++11新特性

#include <iostream>
using namespace std;
int main()
{
    double prices[5] = { 1.1, 1.2, 1.5, 8.5, 9.9 };
    for (double x : prices)
    {
        cout << x << endl;
    }
    cout << "End" << endl;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-02-07
  • 2022-02-20
猜你喜欢
  • 2021-08-25
  • 2021-09-30
  • 2021-09-05
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
相关资源
相似解决方案