fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. class myClass {
  5. public:
  6. std::vector<double> xpoint1, xpoint2, ypoint1, ypoint2;
  7. void foo(const std::vector<double> & px1, const std::vector<double> & px2, const std::vector<double> & py1, const std::vector<double> & py2){
  8. xpoint1 = px1;
  9. }
  10. };
  11.  
  12. int main() {
  13. myClass my_arr[2][10];
  14. my_arr[1][0].foo(std::vector<double>(), std::vector<double>(), std::vector<double>(), std::vector<double>());
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty