11 questions
Why are you using this?I'm confused class Myclass{public: void print() const {}};
How much const should I write?Should I use all the variables that don't change?Even on a single line of code?void printValue(const bool b) { cout << b << endl; }Does writing like this real...
How do I specify variables as constants in Python?In Java,public static final String CONST_NAME = Name;I wrote it the same wayConst, Const CONST, Final, Final, Final, and Final are all not allowed in ...
For example, if you have a class called Point, const Point Point::operator+(const Point& a)Wowconst Point Point::operator+(Point a)What's the difference betweenI only know that const Point& is...
What's the difference?The pointer is too hard ㅜ
const int*const int * constint const * What's the difference between these three?
I'd like to read the string in xml. I need a lot from the widget, so can I call getResource and get it without an activity object?
Please tell me how to change std::string to const charge* or char*
MyString.h (header source)// CMyString class internal instance and method declarationclass CMyString{public: explicit CMyString(const char* paramstr); CMyString(const CMyString &rhs); ~CMyString(v...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.