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

>write C++ >cast an int to double >double a = ((double)(b))

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 26
Thread images: 4

File: 1451157159684.jpg (8KB, 238x279px) Image search: [Google]
1451157159684.jpg
8KB, 238x279px
>write C++
>cast an int to double
>double a = ((double)(b))
>mfw I now mentally consider my variables to be Jewish

who else was corrupted by 4chan so mcuh you can't program?
>>
File: large.jpg (35KB, 500x333px) Image search: [Google]
large.jpg
35KB, 500x333px
>>59407210
>writing in a legacy language
>>
>>59407210
(((Rust)))
>>
double a = (double) b;
>>
>>59407220
>legacy language
>C++17
What the fuck did he mean by this?
>>
>>59407210
(double)b
>>
>>59407210
how is casting related to be jewish?
whut
>>
>>59407250
If it a hello world doesn't require 200MB of ram to run, then it's a legacy language.
>>
>>59407210
auto a = static_cast<double> b
>>
(Try (writing (in (lisp))))
>>
>>59407319
That's much better and not hideously ugly at all.

Thanks C++!
>>
>>59407341
>t-they will fix it in C++ 19
>>
>>59407250
>c++ has modern uses

hahahah
>>
>>59407319
That's nothing, take a look at this shit:
std::chrono::high_resolution_clock::now();
>>
>>59407210
double a = b;
>>
>>59407627
what the fuck
>>
>>59407444
video games
>>
>>59407266
https://en.wikipedia.org/wiki/Triple_parentheses
>>
>>59407266
OP is some faggot from /pol/ where they use parentheses to infer that whatever organization is controlled by the Jews.
>>
File: 1486974690507.jpg (28KB, 460x460px) Image search: [Google]
1486974690507.jpg
28KB, 460x460px
>>59407670
>OP is some faggot from /pol/
>implying /pol/ isnt always right
>>
>>59407210
>>double a = ((double)(b))

Yeah, you usually don't need that many parentheses. It's fine if you use:

double a = (double)b;

And if you prefer a slightly less Jewish look, then you can use:

double a = double(b);

But if it's a built-in conversion, then you don't even need the cast. For example, if b is declared as int, then you can use the Gentile version:

double a = b;
>>
>>59407210

there is literally nothing wrong with being jewish
>>
>>59407730
spotted the kike
>>
>>59407319
>swastika angle brackets
C++ was this based the whole time
>>
File: jewsfuckingsuck.jpg (84KB, 850x400px) Image search: [Google]
jewsfuckingsuck.jpg
84KB, 850x400px
>>59407730
Everything is wrong with being jewish.
>>
What a horrible casting
Thread posts: 26
Thread images: 4


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.