Jared

United States

Apr
6
awarded Curious
Apr
5
accepted Why is realloc() mysteriously behaving differently when compiled for C++?
Apr
5
comment Why is realloc() mysteriously behaving differently when compiled for C++?
Glad this had such a simple solution. Added (char **) before each realloc() call, and everything works well. Thanks for the useful link.
Apr
5
asked Why is realloc() mysteriously behaving differently when compiled for C++?
Jan
28
comment How to print specific byte of unsigned integer?
@Mawg Sorry, there really isn't any code. I always post some snippet if I can. I'm asking for something that I would assume to be a one-line thing considering C is good for dealing with individual bytes. This just isn't something that would be easily found in common textbooks is why I decided to ask here.
Jan
28
accepted Should Perl scripts really have no extension?
Jan
28
asked How to print specific byte of unsigned integer?
Jan
27
asked Should Perl scripts really have no extension?
Jan
16
comment How do I clone a git repository located on my Mac connected to the internet?
I figured that this was the case. I'm not used to git, and wanted the copy on my laptop to be the 'main' copy. Tossed this idea out the window. Instead, transferred directory to workstation (whose address is static, hence better) via FileZilla, got SSH address of it, deleted my PC copy, and used git clone <repo> to get it back so that now I can just git push origin master and git pull origin on my local machine. I think that's the de facto git setup I should have already had.
Jan
16
asked How do I clone a git repository located on my Mac connected to the internet?
Nov
11
comment OOP CLI menu structure organization?
Before you answer your own question, @Konrad, maybe I can explain the situation more. The code above is example code, example code that I don't like. If you had read it, I don't like the run function. And what benefit does using a class have? It doesn't always, but moving it out of main does. Maybe I had tried putting all of my code in main. Maybe it ended up being a function that's a couple hundred lines long, with control flow statements that ended up taking half my page width. Maybe I didn't want to debug that crap later. But right, no benefit. Why do most languages have functions again?
Nov
8
asked OOP CLI menu structure organization?
Oct
18
revised Is it possible to use std::sort with a sort function that takes extra arguments?
Bad code.
Oct
18
answered Is it possible to use std::sort with a sort function that takes extra arguments?
Oct
18
comment Is it possible to use std::sort with a sort function that takes extra arguments?
Could you punch out a quick example for something like this? I've never seen it used before.
Oct
18
comment Is it possible to use std::sort with a sort function that takes extra arguments?
11 is perfectly fine.
Oct
18
asked Is it possible to use std::sort with a sort function that takes extra arguments?
Oct
1
awarded Commentator
Sep
6
awarded Notable Question
Feb
19
awarded Popular Question
1 2 3 4