is there another channel beyond #cplusplus? cause i dont think you got on that today. i didnt see it in the logs. also, when would you need to create a temporary vector of ints like that?
We have an IRC channel for ChessPlusPlus, sometimes we get off topic.
DTSCode wrote:
also, when would you need to create a temporary vector of ints like that?
In this case it's pointless, but as an example of when you would want to create a temporary instance of anything is to pass it to a function or constructor.
My brain just fractured trying to work out what the point of that code was. Thank you for explaining a bit, otherwise I might have started drooling and talking to myself.
Wait, is this supposed to look like something, or is it just a random piece of code with a bunch of curly braces and semicolons?
...I guess with a little stretch of the imagination, you can kinda make yourself think that it looks like a sideways image of a rocket leaving a launch pad....
Anyways, this is my favorite random piece of code (I don't even know why):