Preprocessor is a layer above OOP. That's the same as saying that search-and-replace isn't OOP. The next thing they'll tell us is how not using Visual Studio §§breaks object oriented-ness''
Name:
Anonymous2010-12-23 6:10
>>10
Why would anybody program in C# an NOT use VS?
>>1
If you want defines, then use another language.
In any case you should rewrite it to something less stupid.
If you know your number is not less than or equal to 128, you shouldn't check if it's greater than 128 and certainly not twice.
I don't know your particular problem, but in many cases, it is both possible and better to rewrite if-then-else range problems and use a switch instead (integer division and modulo is your friend).
In any case you should rewrite it to something less stupid.
If you know your number is not less than or equal to 128, you shouldn't check if it's greater than 128 and certainly not twice.
I don't know your particular problem, but in many cases, it is both possible and better to rewrite if-then-else range problems and use a switch instead (integer division and modulo is your friend).
I hope you fucking die you faggot autistic nigger. It's not about this particular problem, it's just a shitty example, why can't you people ever learn this.
>>24
Perhaps it would be better to clarify why you want to use defines, instead of writing very bad code.
That way I'll be able to tell you why you're wrong to use them.
Name:
Anonymous2011-02-22 5:55
>>1 Have you considered accepting an answer or starting a bounty for this question?
>>24 I hope you fucking die you faggot autistic nigger. It's not about this particular problem, it's just a shitty example, why can't you people ever learn this.
Lisen nigga, u think "I will use #define" now u have 2 problems. Coz all times u want to do that it would be a "shitty problem" nigga. U make an example, it's shitty, u make another example, it's shitty, y u no lrn nigga?