It's really a lot of work for not much return. Really it's best just to think of keywords like "if" the same way as keywords like "{", it just happens that they have extra meaning if you know english.
You also go into issues like "if" "then" "else" don't necessary translate well across...
Some really basic C++ questions that people stumble on for some reason (off the top of my head):
1. When do you use a pointer? auto pointer? smart pointer? What's the difference between the three?
2. Explain the difference between stack and heap lifetimes.
3. Your program is leaking...
Check the return value of what? The structure is the return value of m_values[KEY], and will construct an object if the KEY doesn't exist.
I really need a "yes" or "no" answer to the underlying question, if assuming code is guarded properly, if the code is considered valid.
I guess what...
m_values is a std::map<int, Structure>
Structure& structure = m_values[KEY];
structure.setValue(whatever);
Basically, does stl gaurentee that the Structure& reference will always be valid, or does stl internally copy around members under certain circumstances?
Thanks for the reply.
One more question. The manual clearly states that for dual-channel mode use slots A1/B1. The A banks are black, the B banks are yellow, i.e. if the slots were labeled "0/1/2/3" I'd be using 0 and 2 -- one black and one yellow slot.
CPU-Z however says I'm currently...
Bought a M3A-78 and a Phenom 9600 for a budget box, and intended to overclock it. I have an original scythe ninja (bought a AM2->478 retention bracket convertor) whose clip was pretty poorly designed, and is currently interfering with the memory.
I need about .25-0.5cm of room for this to...
I have a Scythe Ninja rev. A that I've been using with my socket 939 forever. I am building a new AM2+ system and want to carry it over.
I am wondering, is this possible? Really, I can see a couple possible scenarios:
1. The retention mechanism of the original ninja (pdf warniing ...
Well, it works now!
I didn't change a thing. All that has changed is I rebooted after installing some updates.
I'm a little puzzles exactly what happened, but for now I'll let it slide.
Thanks for the reply, I miswrote the sample code. It is supposed to be myCopy.erase(0,myCopy.find("#INDUCTION") + 10). Editing the op now.
find() is guaranteed not to be string::npos because of code elsewhere, basically this is in a functor that only runs if a regexp guarantees a certain...
Hello all. I am writing a quick and dirty parser. I have code that wants to consume everything up to the end of a tag. I write this to find an #INDUCTION tag:
myCopy.erase(0, myCopy.find("#INDUCTION") + 10);
This works wonderfully, unless myCopy.find("#INDUCTION") == 0. Then it erases...
Hello all. I've been trying to find a linux distro that pretty much contains the absolute bare minimum required s.t. I don't have to bootstrap a compiler. Pretty much just partation tools, gcc, the kernel, and a shell (preferably bash). Does such a distro exist? The closest I've found is...
I read through the article linked, but the behvaiour specified simply doesn't match what I'm seeing Vista do. Write cacheing is shown as on by default in the GUI.
Is there another way to manually check those flags to verify what the GUI is showing me?
By default Vista has write cacheing enabled for removable drives (in this case, as USB thumb drive). I am trying to figure out how to change the default to "disabled."
Or, failing that, how to get vista to "remember" that the particular thumb drive I am using should never have write cacheing...
What memory addresses correspond to the video card? What sort of protection mechanisms are used to prevent the system from treating the video card memory as system memory?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.