3 ms·
Is there an executable available somewhere? This is kind of a pet peeve of mine, but if you post simple, standalone code you really ought to post the compiled
by PhasmaFelis 8y ago
Is there an executable available somewhere?
This is kind of a pet peeve of mine, but if you post simple, standalone code you really ought to post the compiled executable(s) as well. I don't currently have a C compiler installed on my home Windows box.
- davidjhall 8y agoYou can go to online GDB and run it : https://www.onlinegdb.com/ https://www.onlinegdb.com/ But you have to use the modified code in the comments above or you will get a : main.c:8:7: error: variably modified ‘m’ at file scope =80;i m[H][W];i g(i x) {r rand()%x;}
- falsedan 8y agoI hear Visual Studio Code is all right at doing compile stuff with C++ But more seriously, this is a toy implementation and the value is in reading it to see how it works, not in seeing its output
- yorwba 8y agoWhy use an executable when you can run it on someone else's computer™: https://repl.it/repls/NiceEvilBoard https://repl.it/repls/NiceEvilBoard I swear the URL wasn't chosen by me.
- PhasmaFelis 8y agoThanks for an actually constructive answer! That's pretty neat. I hadn't heard of Repl.it before.
- Insanity 8y agoBut then you need to trust that the executable is the same as the source!
- lixtra 8y agoHere, you can just disassemble the binary and it will be more readable than the code.
- beatgammit 8y agoIf you don't have a compiler, you probably don't have a disassembler...
- dmurray 8y agoIf he'd posted an executable, unless it was for exactly your platform, wouldn't you just have complained you didn't currently have a machine running the correct operating system on the correct hardware?
- PhasmaFelis 8y agoNot at all. Tiny textmode programs do not generally require specific hardware or OS versions. Windows/Mac/Linux should cover the large majority of users. Or you could just do Windows, since Unix machines (including Macs) most likely have gcc installed already. Or you could skip all that and include a Repl.it link, like Yorwba thoughtfully provided in the sibling comment. If it did require specific hardware or software, that would be different, which is why I specifically said "simple, standalone code."
- neurotrace 8y agoOr you could "just" install a C compiler.
- na85 8y agoHang on, I'll get you an executable. Be sure to run it, okay?