[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
I will never understand how people can do void lmao() { cout<<"Bush
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 10
Thread images: 1
File: VisualBasicLogo.gif (24 KB, 434x205) Image search: [Google]
VisualBasicLogo.gif
24 KB, 434x205
I will never understand how people can do
void lmao() {
cout<<"Bush Did 9/11 lol"<<endl;
}


When

void lmao()
{
cout<<"Bush Did 9/11 lol"<<endl;
}


Just looks so much better and makes more sense. Pic unrelated its just there 4 keks, you don't even use { } in vb.
>>
personal preference
>>
I prefer
void lmao()
{
cout << "Bush did 9/11 lol" << endl;
}
>>
>>54413486
This, but with k&r for fuctions, for, if, etc.
>>
>>54413440
I do the first one. I match statements with their closing brace, not braces with their twin. Indentation is easier to look at than braces for me.

Also it is more compact, but that is not a massive conscern since you could also put the end brace on the previous line, which would look horrible to me.

Since that is almost the exact same thing as moving the opening brace to the previous line, it's just personal preference.
>>
>>54413505
I dont like k&r
>>
>>54413486
void lmao()
{
printf("Bush did 9/11\n");
}


even better
>>
>>>/b/ holy shit
>>
(get
(on ((my) level)))
>>
>>54414665
I'd rather stay employed thanks
Thread replies: 10
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.