Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14
https://code.sololearn.com/cxcSw2JORrwA/#cpp Better? -- @M Squared: Yes, yes he did :D @John - Thanks
11th Nov 2017, 1:40 AM
jay
jay - avatar
+ 13
Thanks John! I had heard that it is/can be interpreted as an integer or something like.
11th Nov 2017, 2:58 AM
jay
jay - avatar
+ 12
meh. without hints\directions I wouldn't have got it. if Binary comes up with something that works first go, I say he wins :)
11th Nov 2017, 2:20 AM
jay
jay - avatar
+ 12
I wonder if I should be using 0 as the initial value like in those examples? anyone know why they have used 0. It is of my understanding that 0 is not the same as NULL or nullptr am I misinformed?
11th Nov 2017, 2:37 AM
jay
jay - avatar
+ 11
back to the drawing board :)
11th Nov 2017, 1:29 AM
jay
jay - avatar
+ 11
destructor lol fiiiine. done
11th Nov 2017, 1:43 AM
jay
jay - avatar
+ 11
heheheh this is good learning. I hope others who don't know this are following along at home
11th Nov 2017, 1:48 AM
jay
jay - avatar
+ 10
https://code.sololearn.com/cxcSw2JORrwA/#cpp You may have stumped me here :D
11th Nov 2017, 1:14 AM
jay
jay - avatar
+ 10
Sorry for the long wait. I'm really busy today. I'll finish it later.
11th Nov 2017, 5:21 AM
qwerty
qwerty - avatar
+ 9
@M Squared probably be less errors in his lol. ;) - I have only played with singletons like twice before That is a tricky way @Manual!
11th Nov 2017, 2:09 AM
jay
jay - avatar
+ 8
https://code.sololearn.com/cKh3bYkmIg4c/?ref=app
11th Nov 2017, 6:54 AM
qwerty
qwerty - avatar
+ 7
*even if I can participate, Python is too advanced to have that kind of objects*
11th Nov 2017, 12:58 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
I believe this may be it. I have made my own version ,but, here is the original https://code.sololearn.com/cf6gmH41urbs/?ref=app
11th Nov 2017, 2:05 AM
Manual
Manual - avatar
+ 5
lol I cannot post mine. I feel it is too close to the original.
11th Nov 2017, 2:18 AM
Manual
Manual - avatar
+ 4
nullptr is normally 0, but is implementation dependent so isn't guaranteed.
11th Nov 2017, 2:56 AM
John Wells
John Wells - avatar
+ 4
I used a C++ compiler that used -1 as nullptr as 0 was a valid value. It was used for programming the os so had to be able to reference every addressable physical address. Of course, I really mean unsigned all bits set.
11th Nov 2017, 3:02 AM
John Wells
John Wells - avatar
+ 2
Jay, you haven't allocated the instance.
11th Nov 2017, 1:26 AM
John Wells
John Wells - avatar