12 Discussion / Question Topics

Remove Filter
Member Avatar for deceptikon

A common task in C or C++ is to get a string from somewhere and convert it to an integer. "Use `atoi`" is a common suggestion from the unwashed masses, and on the surface it works like a charm: #include <stdio.h> #include <stdlib.h> long long square(int value) { return value …

Member Avatar for Salem
8
2K
Member Avatar for deceptikon

If you have any ideas for a code snippet you'd like to see, please post them here. We can't depend on the snippet writers to come up with all of the ideas, can we? ;)

Member Avatar for vegaseat
3
749
Member Avatar for deceptikon

Howdy all. I've recently been considering doing an online meeting or webcast on certain subjects for which I have a lot of experience or knowledge. The idea being that something too long or complex for a Daniweb article can be more easily shown by sharing my desktop and talking about …

Member Avatar for deceptikon
3
176
Member Avatar for deceptikon

I'm putting together a new gaming machine, but would like some opinions on the motherboard since I'm weaker in that area. Here are the minimum requirements based on other components I've pretty much nailed down for my needs: * i5-3570K CPU (LGA1155 socket) *-- already purchased, hard requirement* * 16-32GB …

Member Avatar for fitnessfun
0
302
Member Avatar for deceptikon

## Disclaimer ## Full disclosure, this is a problem I've recently encountered at work. I couldn't find a reasonable solution and ended up recommending a logistics approach rather than a full code approach to solve it. The code performs a subset of required functionality to give users more options, but …

Member Avatar for ddanbe
1
581
Member Avatar for deceptikon

This will be a relatively quick article because it's a simple issue. The `system` function gets a lot of flak for being slow because it calls the shell runtime to execute a command, but I rarely see the more devastating issue of security brought up. `system` is insecure in many …

Member Avatar for Assembly Guy
0
305
Member Avatar for deceptikon

Hopefully I shouldn't need to explain what `gets` is or why it's easily one of the worst possible standard functions you could call in your code. In my personal opinion, the title for "holy shit, never use this function" is a tie between `gets` and `system`. I'll discuss the problem …

Member Avatar for rubberman
1
268
Member Avatar for deceptikon

Here are my downloads and impressions in order of preference so far. The season just started though. * **Genshiken Nidaime**: By far my most anticipated of the new series. I regularly reread the Genshiken manga and fully intend to follow this one to the end. * **Watashi ga Motenai no …

Member Avatar for Ketsuekiame
0
202
Member Avatar for deceptikon

I was asked this in an interview today: Q: `malloc(0); /* What does it do? */` It's a great question because it covers a subtlety in the standard and a condition that not many people will consider. Unfortunately, I wasn't 100% confident that I remembered what the standard said about …

Member Avatar for deceptikon
5
224
Member Avatar for deceptikon

For those of you familiar with the latest C++ standard, what do you think of [uniform initialization](http://en.wikipedia.org/wiki/C%2B%2B11#Uniform_initialization)? Listening to folks like Herb Sutter, it seems like the intended purpose is to be completely pervasive, which obviously changes the look and feel of C++. Do you plan on using it everywhere …

Member Avatar for vijayan121
0
428
Member Avatar for deceptikon

Provided below is a bare bones dynamic array library. The game is to extend this library with new primitives and features that interest you, that you've needed in the past, or that you feel may be useful. The intention of this game is to give some of the newer folks …

Member Avatar for myk45
0
251
Member Avatar for deceptikon

Geeks and conventions go hand in hand, right? ;) Who here plans to go to this year's Dragon*Con in Atlanta?

Member Avatar for deceptikon
-1
89

The End.