i fucking hate cs
Just had an autism attack over this shit
Other urls found in this thread:
en.wikipedia.org
twitter.com
it's not even real you fucktard
()
{
}
(){
}
ftfy
> if(a > b && b < a)
that's how you are supposed to write functions
that is used for loops
who else
() {
}
else {
}
here?
(){};
calm down satan
// Hey guys :D
// Hope you're enjoying my code
// This is a simple (else) if statement, to check whether a condition is true or not
// if it's true, it will return true
// if it's false, it will return false
// if you have any questions, feel free to contact me on facebook. I promise I won't bite XD
// Here it goes!
// check if the condition is true
if (condition == true)
{
// make sure the condition is true, by checking if it's not false
// always be safe :)
// != means not equal fyi ;)
if (condition != false)
{
// create boolean x
// a boolean can be true or false
bool x;
// set x to true, because the condition is true
x = true;
// return x, which is true
return x;
}
}
// check if the condition is false
// only checks, if the condition isn't true
// after all, we want our code to be optimized :)
else if (condition == false)
{
// make sure the condition is false, by checking if it's not true
if (condition != true)
{
// create boolean y
// be sure to use another letter
// we don't want others to mix it up with x
bool y;
// set y to false, because the condition is false
y = false;
// return y, which is false
return y;
}
}
#define MAX(A,B) (((A)>(B))?(A):(B))
post the original code at least...
en.wikipedia.org
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
return y;
}
(){} else {}
>Jow Forums setup threads
>fags with 4 wide monitors side to side
>not coding the obvious way
Just do it like any sane person, nigger.
void foo()
{
for(int i=0; i < 10; i++) {
printf("Hello World\n");
}
return 0;
}
I had to review a PR the other week that was nothing but the change from
if (true) {
// ...
}
else {
// ...
}
to
if (true) {
// ...
} else {
// ...
}
repeated across 80 files.
itt: incels in mt. stupid sperg over faked shit code
>This function returns an int ;D
kill it with fire
FUCKING THIS!
Why would you need a macro for such trivial shit?
we need to standardize return code 5
A sane person won't use {} on a single statement
thats pretty bad, I consistently do top
These.
>inb4 no one cares and thread fills up with circle jerk.
its quakes inverse square root approximation function and its the most legendary algorithm in all of CG history you retards
talking about the "klossy" kode and the recreation op wrote in his autism
also it's not the most legendary lol
A single statement can easily grow into multiple statements. Better safe than sorry.
astyle for C lang formats both
if (foo)
doFoo();
else
doElse();
and
if (foo) {
doFoo();
}
else {
doElse();
}
to
if (foo) {
doFoo();
} else {
doElse();
}
eewwww
if (is_faggot(OP)){
post("OP sucks cocks");
}else{
post("Disregard that, I suck cocks");
}
disgusting.
if(is_faggot(OP)){post("OP sucks cocks");}else{post("Disregard that, I suck cocks");}
only if ur coding is cock
() {
}
because it's such trivial shit you dip
bow before my code style you cretins
Fag op = new Fag();
if ( op.isGettingAssFucked() )
{
op.dieOfAids();
}
else { return op.face.accept(new Cumshot()) }
Try playing some Battle Royale instead, senpai.
its a bit to compact to my liking
spaces are not the enemy, user
use allman style FGJ...