fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4. #include <vector>
  5.  
  6. using namespace std;
  7.  
  8.  
  9.  
  10. class Matriz
  11. {
  12. public:
  13. Matriz(){}
  14. Matriz(const std::vector<double> & vector)
  15. {
  16. }
  17. Matriz & operator*=(const Matriz& valor)
  18. {
  19. return *this;
  20. }
  21.  
  22. //Matriz & operator*=(const vector<double>& valor)
  23. //{
  24. // return *this;
  25. //}
  26. };
  27.  
  28.  
  29. int main()
  30. {
  31. double vetor[3] = { 1, 2, 3 };
  32. std::vector<double> vec(vetor, vetor + 3);
  33. Matriz A;
  34. A*=std::vector<double>(vetor, vetor + 3);
  35.  
  36. return 0;
  37. }
Success #stdin #stdout 0s 3024KB
stdin
Standard input is empty
stdout
Standard output is empty