reference tag

34 questions


1 answers
109 views
0
I want to make a shared preference single tone.

I want to make a single tone with Shared Preference, but there is a null point error < java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raracraft.every_hour/com.raracraft.every_h...


2 answers
59 views
0
Python pointer

Hello.p = Noneif b.x == c.x: //When Python has the following code, make the variable p a pointer for readability and externally I'd like to use corbLike this.*p = None #virtual grammarif ...: p = &...

2 years ago

1 answers
51 views
0
I don't know the exact meaning of the reference and its use.

class point{private: int* arr; int len;public: point(int a) :len(a) { arr = new int[len]; } int& operator[](int a) { if (a<0 || a>=len) exit(1); else return arr[a]; }};int main(){ poin...

2 years ago

1 answers
114 views
0
Question for reference: Why do I get a compilation error if I don't use the factor as a reference form in the copy generator part?

class account{private: int accid; int balance; char *name;public: account(int id, int money, const char* a) :accid(id), balance(money) { name = new char[strlen(a) + 1]; strcpy(name, a); } account(c...

2 years ago
« - 4 -

© 2024 OneMinuteCode. All rights reserved.