Jared

United States

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
comment Creating a template class makes nullptr and NULL undeclared?
Well, it works now. Apparently -std=c++11 is preferred over -std=c++0x. Don't understand why. Also, Piotr's reasoning is pretty sound regarding NULL.
Oct
1
awarded Commentator
Oct
1
comment Creating a template class makes nullptr and NULL undeclared?
Using clang on Mac. C++11 is supported. LinkedList is aware of LinkedListNode. I've never had to include cstddef in order to use NULL before, but I tried your suggestion and it now compiles. I'm still wondering why it suddenly necessary this time and why nullptr still no longer works.
Oct
1
comment Creating a template class makes nullptr and NULL undeclared?
Added the LinkedListNode class declaration, which was causing the same issue. Also, I did try -std=c++0x with the same result. The fact that NULL is also unaccepted tells me something else is going on.
Oct
1
asked Creating a template class makes nullptr and NULL undeclared?
Sep
6
awarded Notable Question
Feb
19
awarded Popular Question
1 2 3 4