C++ trivia
-
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Just to be on the safe side, be sure to consider this is the most distinct use of the colon.[^]
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Isn't it just another separator? :-D
-
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.static member access, constructor initialization list. Base class list, namespace access, ternary operator,
case
signifier terminator. I feel like there are more but I'm sleepy. edit: other commenters pointed out labels and bitfields Don't forget to escape strings and chars!Real programmers use butterflies
-
static member access, constructor initialization list. Base class list, namespace access, ternary operator,
case
signifier terminator. I feel like there are more but I'm sleepy. edit: other commenters pointed out labels and bitfields Don't forget to escape strings and chars!Real programmers use butterflies
also bitfield definitions
-
static member access, constructor initialization list. Base class list, namespace access, ternary operator,
case
signifier terminator. I feel like there are more but I'm sleepy. edit: other commenters pointed out labels and bitfields Don't forget to escape strings and chars!Real programmers use butterflies
-
also bitfield definitions
Thanks. I knew i was forgetting something!
Real programmers use butterflies
-
goto the head of the class!
If you can't laugh at yourself - ask me and I will do it for you.
i forgot labels. So now that's two things i forgot
Real programmers use butterflies
-
Just to be on the safe side, be sure to consider this is the most distinct use of the colon.[^]
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
Now why would I be hesitating to click on that link? :-D EDIT: Curiosity killed the cat. But it could have been worse!
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
Now why would I be hesitating to click on that link? :-D EDIT: Curiosity killed the cat. But it could have been worse!
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Greg Utas wrote:
Now why would I be hesitating to click on that link?
Answer I'd have given: Hesitant? Perhaps not enough roughage?
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
Just to be on the safe side, be sure to consider this is the most distinct use of the colon.[^]
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
I was going to say, "to write VB code because only ... " but he beat me too it ... :-D
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
i forgot labels. So now that's two things i forgot
Real programmers use butterflies
global scope operator, as in ::foo
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
global scope operator, as in ::foo
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
I presumed that was implied when i mentioned the namespace scope resolution operator (it's the same operator) :)
Real programmers use butterflies
-
I presumed that was implied when i mentioned the namespace scope resolution operator (it's the same operator) :)
Real programmers use butterflies
In a ternary oparator
sResult=(x<=0)?"0 or negative":"positive";
-
List the distinct uses for a colon in C++. Motivated by currently writing a function that had better take all of them into account! :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.To keep my gastroenterologist in BMW's? Oh wait, wrong colon; my bad.
Software Zen:
delete this;
-
static member access, constructor initialization list. Base class list, namespace access, ternary operator,
case
signifier terminator. I feel like there are more but I'm sleepy. edit: other commenters pointed out labels and bitfields Don't forget to escape strings and chars!Real programmers use butterflies
Range-based for loop?
-
In a ternary oparator
sResult=(x<=0)?"0 or negative":"positive";
i already mentioned that.
Real programmers use butterflies
-
Range-based for loop?
is that a C++20 thing?
Real programmers use butterflies