|
I did not wrap the queue. I implemented my own queue over an array, wrapping like Microsoft's class does.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Yeah, that really seems the best, and most labor and time intensive method, for something so easy that could've been there at no extra effort
|
|
|
|
|
LOL, blame microsoft. I really shouldn't have had to reinvent the wheel here.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
"... but that doesn't really jibe with microsoft's naming conventions either."
That is of zero concern for me. I couldn't care less what their conventions are. Mostly because I detest what they have done with the Win32 SDK names of structures and members. I'll use what ever convention(s) I feel like using. Here's one example : they continue to use this long pointer prefixing "LP..." on things. We haven't had to deal with long pointers since the 32-bit SDK came into being. The whole large-model programming thing was horrendous and I resent being reminded of it. For this reason, I never, ever use a LP prefix for anything. For the items I access that have to use it I always make a typedef to avoid it.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Well they're of concern to me, which is why I brought them up. And as far as Win32 goes, it's not .NET where naming is concerned. Entirely different ballgame.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Yes, I know those are different things, but my point is/was microsoft has changed directions with naming conventions so many times that I can't care less about conforming to their standards.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I can totally understand that. I'm a little more forgiving I guess. Or I just see different naming patterns to be appropriate in different contexts - I switch up myself. In fact, in C++ I have a few different naming and coding styles and conventions I use depending on the particular "realm" I'm coding in. Different languages, different conventions, too.
But that's me. To each their own.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
ImpQueue<t>
Could be for ImprovedQueue...but also since imps are little demons...
But, also IdxQueue<t> could work too.
|
|
|
|
|
Some time ago I reported that, when debugging C++ in VS2017, you can't always see what a unique_ptr is managing[^]. The same thing sometimes happens with other containers, such as <list> or <set> . That is, you can inspect the container's private members, but not the items that it actually holds.
I'm starting to think there's something wrong with my system, given that this problem report has attracted no interest. But if you've experienced it, please upvote the item so that they will fix it instead of triaging it.
|
|
|
|
|
I use VS2017 but have never experienced this problem. Do you have a code snippet that always demonstrates the issue?
|
|
|
|
|
A code snippet wouldn't help because it's sporadic. Sometimes works, sometimes doesn't, for the same code.
|
|
|
|
|
I've gone through 4 of these [^] over the last few years and after about a year the keys start sticking and get worse quickly. Looking for an inexpensive mechanical keyboard!
Something like an abacus but with more keys.
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
My current keyboard was made by DEC. The previous one was made by IBM (circa 1997).
|
|
|
|
|
Yeah I'm thinking that would be the most inexpensive way to go. Feabay has IBM PS/2 for $25 wired and I can get an PS/2 to USB adapter for another $6!
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
just lay off the PB&J's when you're coding, no keyboard can withstand those
this internet has become nothing but fake news.
... time to fix it, time to get back to the fax!
|
|
|
|
|
|
That surprises me, I had a Logi K/B for five or so years without problems - it replaced a fifteen+ year old "really cheap" k/b I bought with my first "real" PC (i.e. with a 486 processor). And I only replaced that because Herself complained I'd worn the legend off nearly all the keytops and she couldn't work out what letter was where ...
Currently using a MS 600, and it's not too bad at all: good travel and the feel is ok, if a little noisy. "A" and "S" are unreadable already though, and it's only a few years old (maybe four?)
The one I'd like is The Datamancer "Seafarer" Keyboard[^] but I'll leave it in the shop for the moment.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: "A" and "S" are unreadable already though
Mine has that problem with the 'C' key. Sheesh, I'm not that much of a copy/paste programmer...(well, at least apparently I copy more than I paste...)
|
|
|
|
|
I'm being charitable with myself and assuming the "S" is because I save too much.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I like the keyboard but they just don't last long, a year maybe 1-1/2 for me. I used an old IBM for years but switched to this one because it was wireless. I just want oee that will last a while.
The thing that most PMO is when I go to copy the ctrl-C works sometimes and not others so I end up going back and re-copying when I find that there;s nothing to paste.
OriginalGriff wrote: The one I'd like is The Datamancer "Seafarer" Keyboard[^] but I'll leave it in the shop for the moment.
Ah yeah I'll leave that one as well!
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
I have the same experience a Griff.
So I counted backwards and realized that my logitech Internet keyboard 350 is eight years old.
Pity the letters are printed on the keys, because my s and a aren't that readable either.
|
|
|
|
|
So there is a use for white-out in the computer world after all--repaint the legends!
|
|
|
|
|
|
I've been using a mechanical Code keyboard for many years now.
I'm happy with it; it has a good feel to it, and the keys are illuminated (white only)
Couple of keys are worn out (left control key and "a" key); but nothing to type home about.
I'd rather be phishing!
|
|
|
|
|
I use a Dell QuietKey[^] . They're built like tanks and work well.
/ravi
|
|
|
|