[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
How can this happen
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: 15
Thread images: 4
File: e756e6afe92740f49b486a2952bfdf22.png (205 KB, 1919x1079) Image search: [Google]
e756e6afe92740f49b486a2952bfdf22.png
205 KB, 1919x1079
So guyz wtf happened here just wanted to try out my code (http://prntscr.com/bsyvsv a basic file size displayer)
>got the output pic related
>wtf.jpg
>restarted VisualStudio
>got normal output

Some explanations:
Output was: Filesize: 151.232 (pic related) ... > crash
Got this output multiple times debuging until restart

could it be that this is some data of nearby memory addresses?
srsly whats going on here
>>
>>55576588
da code
>>
>>55576588
Hans pls
>>
https://www.youtube.com/watch?v=JmIhZYCMgvI
>>
>>55576588
Have you tried using an OS that isn't retarded for development?
>>
>>55576588
i guess

something happened

:^)
>>
>>55576598
What the fuck are you doing?
>>
>>55576824
i know thats fucking ugly im new into c++ allways used java before
>>
File: 1.jpg (56 KB, 684x524) Image search: [Google]
1.jpg
56 KB, 684x524
>>55576678
how is windows "retarded for development"
>>
>>55578055

Because developing for the Windows platform is developing for retards.
>>
File: nerf this tbh fam.jpg (17 KB, 401x317) Image search: [Google]
nerf this tbh fam.jpg
17 KB, 401x317
>Windows 10
>>
Is yours a real question OP?
You're wondering why the .exe file looks like gibberish on the text editor? is that it?
This might be a troll but just in case you really don't know OP:
the .exe is a compiled file, a binary, machine code, full of non-ascii characters. The few text you see is environment functions probably resident in the .data section or something
You write a .c or .cpp file and then pass it thorugh the compiler which produces actually executable machine code which doesn't look in any way meaningful in a text editor. Hence: a binary
>>
>>55578605

You didn't read a single word in op's post, did you? Are you just too smart to do that?
>>
>>55576598
I believe the (main) issue is an unchecked array access with types[sizeindex].
>>
>>55576598

you are comparing an integer and a float in float... >999 on line 27, that's bad practice.

Also, it looks like the while loop will never terminate.
Thread replies: 15
Thread images: 4

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.