@adityagnet && and || indicate operations with truth values. a || b means "true if a is not false or b is not false; false otherwise". It evaluates b only if a was false. || stands for "or"; && for "and". See Wikipedia articles on Boolean for explanation on the concept.
& and | do bitwise calculations with two integers, producing an integer result. It is easiest to understand when you think in binary. See the Wikipedia articles of Bitwise_OR and Bitwise_AND for a detailed explanation on that.
@radinkins You are actually quite mistaken. C++ is being improved even today -- in fact a new version of the standard was released just a few weeks ago. Also, it is no more "full of memory leaks" than English is full of expletives. Anyone can make bad code, sure, but inefficient and dysfunctional prorams can be made in any language if one so chooses. In C++ I follow design principles that are almost completely devoid of pointers and memory management. I apologize to everyone if I fed the troll.
@hiphoper19881988 Such action is indeed a problem when and if the source code stops referring to the derived type and starts referring to the base type. This code however does not do that, and there is no problem.
@hiphoper19881988 No there will not, if the template type of the outer container contains the right type. As in, template(typename T) class myclass: public std::vector(T) ( ... ); std::list(myclass(int)) p; p.push_back(myclass(int) ()); p.clear(); Does not contain a memory leak.
Apologies for using wrong parentheses, but YouTube blocks the post otherwise.
Thank You.
iiiears 2 months ago
whats the difference between || and | or && and&
adityagnet 2 months ago
@adityagnet && and || indicate operations with truth values. a || b means "true if a is not false or b is not false; false otherwise". It evaluates b only if a was false. || stands for "or"; && for "and". See Wikipedia articles on Boolean for explanation on the concept.
& and | do bitwise calculations with two integers, producing an integer result. It is easiest to understand when you think in binary. See the Wikipedia articles of Bitwise_OR and Bitwise_AND for a detailed explanation on that.
Bisqwit 2 months ago
This comment has received too many negative votes show
why such an old language C++ it is full of memory leaks and bad pointer tech. try doing this in F# or some other improved language
radinkins 4 months ago
@radinkins You are actually quite mistaken. C++ is being improved even today -- in fact a new version of the standard was released just a few weeks ago. Also, it is no more "full of memory leaks" than English is full of expletives. Anyone can make bad code, sure, but inefficient and dysfunctional prorams can be made in any language if one so chooses. In C++ I follow design principles that are almost completely devoid of pointers and memory management. I apologize to everyone if I fed the troll.
Bisqwit 4 months ago 14
@Bisqwit Thanks for inspiration. Just began to learn c++, caz AS3 is "full of memory leak"
vsyostudiotv 4 weeks ago
@radinkins Thats right. He should use a superior language like assembly!
masterofall66 3 months ago
@masterofall66 LOL!!!
aarongrooves 2 months ago
great video, thanks for the upload!
Tallykoren 6 months ago
I think DOS Environment is a little bit old. But again i like it.
Also, the music is awesome! :) Good Job!
t26ify 7 months ago
Your an EXPERT!
SriAldNav 7 months ago
You shouldn't inherit from a STD-Container because his Destructor isn't virual...
hiphoper19881988 8 months ago 4
@hiphoper19881988 Such action is indeed a problem when and if the source code stops referring to the derived type and starts referring to the base type. This code however does not do that, and there is no problem.
Bisqwit 8 months ago
@Bisqwit Yes but when you or someone else uses your classes as the template-argument for a STD-Container? Then there will be a memory-leak.
(Sorry for my bad english)
hiphoper19881988 8 months ago
@hiphoper19881988 No there will not, if the template type of the outer container contains the right type. As in, template(typename T) class myclass: public std::vector(T) ( ... ); std::list(myclass(int)) p; p.push_back(myclass(int) ()); p.clear(); Does not contain a memory leak.
Apologies for using wrong parentheses, but YouTube blocks the post otherwise.
Bisqwit 8 months ago
@hiphoper19881988 That's the nerdiest comment on Youtube. Just sayin'.
tmantonym 2 months ago
This is why I love math. C++ IS THE FUTURE!
zortchik 9 months ago
Yea, kinda badass. I like how you did it all in DOS. Old school.
MarkOates2 1 year ago
haha reminded me of Radiohead - I Froze Up
ytubeanon 1 year ago
Very impressive.
MikeMayer 1 year ago
Wow! Seriously, I love every part of your "rerecording set up" and these moving char on the bottom screen are quite intriguing.
BadPotat0 1 year ago
@BadPotat0 The program itself, not so much? :P
Bisqwit 1 year ago
OMG godly done! ;)
Joddy12 1 year ago