Results 1 to 7 of 7
Thread: [Linker error] c++
Hybrid View
-
4th March 2009 23:30 #1
[Linker error] c++
Linker error ... :SCode:#include <iostream> #include <cstdlib> #include <cmath> using namespace std; const double pi = 3.14; class Rectangle { private: double a, b; public: double n; void calcAB (); void print () { calcAB(); cout << endl << "Rectagle ABCD With Sides: " << endl; cout << "a=" << a << endl; cout << "b=" << b << endl; } }; int main () { Rectangle r; r.n = 10; r.print (); system ("pause"); return 0; }Epox 8U1697 GLI, Sempron 2800+ OC@2640Mhz, 512+1GB ddr400@165mhz 2.5-3-3-7 1T, Asus 8600GT, 160GB HITACHI, 320GB Samsung, 1TB WDC
-
4th March 2009 23:43 #2
Rectangle::calcAB()? , , .
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
5th March 2009 00:11 #3
?
Epox 8U1697 GLI, Sempron 2800+ OC@2640Mhz, 512+1GB ddr400@165mhz 2.5-3-3-7 1T, Asus 8600GT, 160GB HITACHI, 320GB Samsung, 1TB WDC
-
5th March 2009 00:22 #4Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366

- , Rectangle::calcAB(). .
-
5th March 2009 00:29 #5\Code:
{ private: double a, b; public: double n; void calcAB (); void print (); }; void Rectangle::calcAB () void Rectangle::print () { calcAB(); cout << endl << "Rectagle ABCD With Sides: " << endl; cout << "a=" << a << endl; cout << "b=" << b << endl; }
. .Epox 8U1697 GLI, Sempron 2800+ OC@2640Mhz, 512+1GB ddr400@165mhz 2.5-3-3-7 1T, Asus 8600GT, 160GB HITACHI, 320GB Samsung, 1TB WDC
-
5th March 2009 00:39 #6Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, void Rectangle::calcAB ()?
, .Code:void Rectangle::calcAB () { // }
-
5th March 2009 14:11 #7Epox 8U1697 GLI, Sempron 2800+ OC@2640Mhz, 512+1GB ddr400@165mhz 2.5-3-3-7 1T, Asus 8600GT, 160GB HITACHI, 320GB Samsung, 1TB WDC




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