fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. double a = 1.23;
  8. double b = 4.56;
  9. vector<double> v = {a,b};
  10. cout << v[0] << " " << v[1] << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
1.23 4.56