We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71e71f1 + 52dc43d commit c2c694eCopy full SHA for c2c694e
2 files changed
INCL/sshutils.hpp
@@ -30,6 +30,12 @@
30
#define M_PI_4 0.785398163397448309616
31
#endif
32
33
+/// Pomocnicza funkcja kwadratowa dla skrócenia kodu tu i tam...
34
+template<class NUM>
35
+inline NUM sqr(const NUM& x)
36
+{ return x*x; }
37
+
38
39
/**
40
* @defgroup SymShellUtils Różne dodatkowe narzędzia do grafiki
41
* \brief Zdefiniowane kolory i dodatkowe kształty
UTILS/sshutils.cpp
@@ -26,12 +26,6 @@
26
27
using namespace std;
28
29
-/// Pomocnicza funkcja kwadratowa dla elegancji kodu
-inline int sqr(int x)
-{
- return x*x;
-}
-
/// Funkcja ta drukuje w obszarze nie większym niz 'maxwidth' z justowaniem
/// Sekwencje określające justowanie muszą być na początku i są to:
/// %@L - left , %@R - right oraz %@C - center.
0 commit comments