Well, it was expanding to be quite long. x, y, z are all really members of structs and expanding each one took multiple lines. I was just wondering, I can work with no other solution, just curious. Thanks.
Well, it was expanding to be quite long. x, y, z are all really members of structs and expanding each one took multiple lines. I was just wondering, I can work with no other solution, just curious. Thanks.
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
Well... if your structures are _that_ long and you don't like writing, you can put values in temp vars and hope that compiler will optimize them away.Originally Posted by chrismiceli
Code:{ int tempX = x; int tempY = y; int tempZ = z; if (tempX == tempY && tempY == tempZ && tempZ != a) { //code } }