Type: Posts; User: OReubens
Search took 0.12 seconds.
1) Yes, assuming that thread has a messagequeue associated with it.
2) the thread you create "becomes part" of whatever process you created it in. thread creation is Always associated with the...
In old C++, the result of division (and remainder or modulo) the only guarantee you get is that for any integer a and any non-zero integer b is that:
a == (a/b)*b + (a%b)
is always true.
headers ending with '.h' are old style headers and either didn't use namespaces, or they included the standard header (<iostream> in this case) and dragged std into global.
If you want to design...
I'm in the process of teaching a number of very young kids (age 10 to 12) how to program in C++.
I'm having no problem at all getting them to create fun and interesting projects on a...
functions called from C/C++ automatically get a _ prefixed, you can't avoid that.
The reason is so that you can see which functions are callable from C, and which ones are only internal to the .asm...
developing drivers is NOT like developing regular C++ programs. you are restricted in what you can do since most of the Windows API is simply unavailable from drivers.
You will also need a kernel...
1) use a (const) reference
2) use a non-const reference
3) use references, use a reference-counting reference wrapper or use a reference counted smart pointer (you seem to be unaware of actual...
Considering his OP. I doubt any of them will realistically impact him. But yes... there's a couple breaking changes.
The majority of them will cause a compiler error or if not, they're the result...
ok, in that case.
No changes have been made to the core language, everything that you did before still works in C++11.
that was one of the main and primary concerns for C+11 afterall:
btw, the layout in #5 is not properly normalized. In particular the employee table can be improved by additional normalization.
Note that just because you CAN normalize further, that doesn't mean...
Actually, before you even get into how to use a database, you'll need to learn how to design a database.
If what you want is a simple 1 table DB with a few fields, then this won't be of much...
So you want to know about the most important changes of C++11 if you totally ignore all of the most important changes made to C++11 ?
There's lists in plenty places, simply skip over the parts...
it's not a dogma. it's guideline. That's a pretty different take on it.
If you are working on projects that are long lived, and need to be maintained by many people, then the guideline is a good...
pointers are evil
and you should avoid them if possible
that doesn't mean they're Always avoidable and aren't sometimes necessary.
But as a whole, you tend to have cleaner and easier to use...
What you really need to do is asses the actual real time constraints. How fast do you need to respont to a trigger, and how often do triggers arrive and what is the latency in the arrival and...
June 30th, 2015, 07:24 AM
if you are finding yourself to be using a lot of pointers in designing interfaces... you're probably doing something wrong somewhere.
If abstraction is causing you to introduce pointers, you...
June 30th, 2015, 07:20 AM
you can use any terminal program to see what's coming in (and you can do the output manually too)
June 30th, 2015, 07:09 AM
Short general answer: No.
C# or any languare running on a 'closed VM' or any language with a garbage collector (GC) you have no control over (and C# has both) typically isn't...
June 29th, 2015, 07:04 AM
string based indexes... how... horribly inefficient and non-robust (what do you expect to happen when the input string doesn't look like a "X:Z" but is "hello world" ?
June 29th, 2015, 06:54 AM
If you want this to work from "any" program, then the only realistic way to do this is by hooking the StartDoc() windows API function.
If you need this on Win64, that means you'll need 2 versions of...
June 29th, 2015, 06:41 AM
play length is not part of the MP3 information and the total time is not available in the header. You will need to calculate this by traversing the MP3, parsing the musical data frame, ignoring...
June 26th, 2015, 08:21 AM
And some 'smart' programmers might point out that it would be better to use the back_inserter rather than using a presized vector that you then need to shrink. There's pro's and cons for each. ...
June 26th, 2015, 08:00 AM
the problem being that is pretty much 'pops out' what the problem is with that hardcoded 5.
Even if there weren't 5 in the end result it would still be somewhat Obvious that that is the issue. ...
June 25th, 2015, 09:27 AM
Yes, if and only if there is a induced transitive relation between the scoring.
text1 and text2 are 50%
and text2 and text3 are 50%
then text1 and text3 are 25% (50% of 50%)
June 25th, 2015, 09:19 AM
Nothing wrong with using GDI+ per se.
Just know what you're getting.
Most of GDI+ ends up being handled entirely in software and thus is slower than equivalent GDI operations which does get...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!