hi guys i have a question about constant variable i tried to define consts in a class but compiler gives errors.do you guys have any suggestion?can i use #define instead of const?what wrong with this code?
Code://this class calculates circle perimeter of a circle ,c=2*pi*r class circle { const float pi=3.14; const int r=2; const int m=4; public: void calc() { //arguments } };