fork(3) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. vector<vector<float>> yy
  9. {
  10. {20.0, 20.0},
  11. {80.0, 80.0},
  12. {20.0, 80.0},
  13. {80.0, 20.0}
  14. };
  15.  
  16. for (int i=0; i<yy.size(); i++)
  17. {
  18. for (int j=0; j<yy[i].size(); j++)
  19. {
  20. cout << yy[i][j] << " ";
  21. }
  22. cout << endl;
  23. }
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
20 20 
80 80 
20 80 
80 20