Jared

United States

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
Sep
4
accepted Dynamically create controls based on solution folder content
Sep
3
asked Dynamically create controls based on solution folder content
May
10
accepted How would I increment a color value on MouseOver trigger in XAML template?
May
10
comment How would I increment a color value on MouseOver trigger in XAML template?
Well, this is a lot simpler than I thought it was going to be. I'm used to having to code a way for the control to revert to its original color, so this has been a pleasant surprise for me. Didn't know that XAML made this convenient for you. Thanks!
May
10
asked How would I increment a color value on MouseOver trigger in XAML template?
Feb
11
awarded Popular Question
1 2 3