Results 1 to 3 of 3
Thread: C++
Hybrid View
-
8th December 2013 20:48 #1
C++
,
, . , X Y, , .
:
int main() point A square B, (DevC++) " [Linker error] undefined reference to `point::~point()' "Code:#include <iostream> //#include <cmath> using namespace std; class point { private: double x,y; public: point(); point (double a, double b); ~point(); void setx(double a) {x=a;}; void sety(double b) {y=b;}; double getx(){return x;}; double gety(){return y;}; }; class square:public point { private: double length; public: square(double c, double x, double y); ~square(); double get_SquareSide() {return length;}; }; point::point(double a,double b) { x=a; y=b; }; point::point() { x=y=0;}; square::square(double c,double x,double y) { length=c; setx(x); sety(y); };
, ...X470 AORUS ULTRA GAMING | Ryzen5 2600 |2x16GB Corsair LPX 3200Mhz | EVGA GeForce GTX 1080 Ti SC Black Edition Gaming|512GB Samsung 970 Pro +
512GB ADATA SU800| Corsair HX1200i | Corsair Graphite 600t |BENQ PD3200U
-
8th December 2013 21:25 #2
~point() {} point::~point() {} -. , .
DX58SO | x5670@4.2 | Megahalems | 3x4 EBJ40EG8BFWB-JS-F@1400 MHz | MSI GTX 970 1488/8000 | THNSNH256GBST + 3 x WD1600HLHX RAID 0 | X-Fi Titanium | P1-1250-BEFX
The big trouble with dumb bastards is that they are too dumb to believe there is such a thing as being smart. Kurt Vonnegut
-
8th December 2013 21:39 #3
,
X470 AORUS ULTRA GAMING | Ryzen5 2600 |2x16GB Corsair LPX 3200Mhz | EVGA GeForce GTX 1080 Ti SC Black Edition Gaming|512GB Samsung 970 Pro +
512GB ADATA SU800| Corsair HX1200i | Corsair Graphite 600t |BENQ PD3200U




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in