fork download
  1. // Kwaterniony
  2. // PROI - ZAD 1
  3. #include <iostream>
  4. #include <cstdlib>
  5. #include <cmath>
  6.  
  7. using namespace std;
  8.  
  9. class Quaternion
  10. {
  11. //Obiekty bedace wspolczynnikami kwaternionu w postaci algebraicznej:
  12. int Afactor;
  13. int Bfactor;
  14. int Cfactor;
  15. int Dfactor;
  16. public:
  17. //Konstruktor:
  18. Quaternion(int a, int b, int c, int d);
  19. //Destruktor
  20. ~Quaternion(){}
  21. //Przeciazanie operatorów:
  22. Quaternion operator+(Quaternion &q);
  23. Quaternion & operator+=(Quaternion &q);
  24. Quaternion operator-(Quaternion &q);
  25. Quaternion & operator-=(Quaternion &q);
  26. Quaternion operator*(Quaternion &q);
  27. Quaternion & operator*=(Quaternion &q);
  28. friend ostream & operator<<(ostream &strm, Quaternion &q);
  29. double module();
  30. };
  31.  
  32.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty