Advertisement
Guest User

Untitled

a guest
May 6th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.46 KB | None | 0 0
  1. SourceWektor.cpp: In function 'void PlusWek(Wektor*, int)':
  2. SourceWektor.cpp:125:6: error: no match for 'operator=' (operand types are 'Wektor' and 'Wektor
  3. ')
  4.   add = ((lista[0]) + (lista[1]));
  5.       ^
  6. SourceWektor.cpp:125:6: note: candidate is:
  7. SourceWektor.cpp:44:9: note: Wektor& Wektor::operator=(Wektor&)
  8.  Wektor &Wektor::operator=(Wektor &wek) {
  9.          ^
  10. SourceWektor.cpp:44:9: note:   no known conversion for argument 1 from 'Wektor' to 'Wektor&'
  11. SourceWektor.cpp: In function 'void MinusWek(Wektor*, int)':
  12. SourceWektor.cpp:136:6: error: no match for 'operator=' (operand types are 'Wektor' and 'Wektor
  13. ')
  14.   sub = ((lista[0]) - (lista[1]));
  15.       ^
  16. SourceWektor.cpp:136:6: note: candidate is:
  17. SourceWektor.cpp:44:9: note: Wektor& Wektor::operator=(Wektor&)
  18.  Wektor &Wektor::operator=(Wektor &wek) {
  19.          ^
  20. SourceWektor.cpp:44:9: note:   no known conversion for argument 1 from 'Wektor' to 'Wektor&'
  21. SourceMatrix.cpp: In constructor 'Matrix::Matrix()':
  22. SourceMatrix.cpp:8:10: error: no match for 'operator=' (operand types are 'Wektor' and 'Wektor'
  23. )
  24.    tab[i] = Wektor();
  25.           ^
  26. SourceMatrix.cpp:8:10: note: candidate is:
  27. In file included from HeaderMatrix.h:3:0,
  28.                  from SourceMatrix.cpp:1:
  29. HeaderWektor.h:20:10: note: Wektor& Wektor::operator=(Wektor&)
  30.   Wektor &operator=(Wektor &wek);
  31.           ^
  32. HeaderWektor.h:20:10: note:   no known conversion for argument 1 from 'Wektor' to 'Wektor&'
  33. SourceMatrix.cpp: In member function 'Matrix Matrix::operator+(Matrix&) const':
  34. SourceMatrix.cpp:90:10: error: no match for 'operator=' (operand types are 'Wektor' and 'Wektor
  35. ')
  36.    arr[i] = (tab[i]) + (mat.Tab()[i]);
  37.           ^
  38. SourceMatrix.cpp:90:10: note: candidate is:
  39. In file included from HeaderMatrix.h:3:0,
  40.                  from SourceMatrix.cpp:1:
  41. HeaderWektor.h:20:10: note: Wektor& Wektor::operator=(Wektor&)
  42.   Wektor &operator=(Wektor &wek);
  43.           ^
  44. HeaderWektor.h:20:10: note:   no known conversion for argument 1 from 'Wektor' to 'Wektor&'
  45. SourceMatrix.cpp: In member function 'Matrix Matrix::operator-(Matrix&) const':
  46. SourceMatrix.cpp:100:10: error: no match for 'operator=' (operand types are 'Wektor' and 'Wekto
  47. r')
  48.    arr[i] = (tab[i]) - (mat.Tab()[i]);
  49.           ^
  50. SourceMatrix.cpp:100:10: note: candidate is:
  51. In file included from HeaderMatrix.h:3:0,
  52.                  from SourceMatrix.cpp:1:
  53. HeaderWektor.h:20:10: note: Wektor& Wektor::operator=(Wektor&)
  54.   Wektor &operator=(Wektor &wek);
  55.           ^
  56. HeaderWektor.h:20:10: note:   no known conversion for argument 1 from 'Wektor' to 'Wektor&'
  57. SourceMatrix.cpp: In function 'void PlusMat(Matrix*, int)':
  58. SourceMatrix.cpp:147:6: error: no match for 'operator=' (operand types are 'Matrix' and 'Matrix
  59. ')
  60.   add = ((lista[0]) + (lista[1]));
  61.       ^
  62. SourceMatrix.cpp:147:6: note: candidate is:
  63. SourceMatrix.cpp:74:10: note: Matrix& Matrix::operator=(Matrix&)
  64.   Matrix &Matrix::operator=(Matrix &mat){
  65.           ^
  66. SourceMatrix.cpp:74:10: note:   no known conversion for argument 1 from 'Matrix' to 'Matrix&'
  67. SourceMatrix.cpp: In function 'void MinusMat(Matrix*, int)':
  68. SourceMatrix.cpp:171:6: error: no match for 'operator=' (operand types are 'Matrix' and 'Matrix
  69. ')
  70.   sub = ((lista[0]) - (lista[1]));
  71.       ^
  72. SourceMatrix.cpp:171:6: note: candidate is:
  73. SourceMatrix.cpp:74:10: note: Matrix& Matrix::operator=(Matrix&)
  74.   Matrix &Matrix::operator=(Matrix &mat){
  75.           ^
  76. SourceMatrix.cpp:74:10: note:   no known conversion for argument 1 from 'Matrix' to 'Matrix&'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement