Order yourself one of these. If you order two, you can probably get free shipping from Amazon! – Cody Gray 1 min ago upvote flag How am I supossed to pay? I don't have any work. – user1515422 11 secs ago
@Mysticial, We were using it earlier :p
But seriously, why put it on something where anyone can mess it up
i'm currently doing a simulation of adt in c, and i'm supposed to make a binary search tree invloving strings, i'm currently starting coding but i get this error and it doesnt say where the error comes from, here's the code, can somebody help me.
//Tree.h
#ifndef tree_h
#define tree_h
#include &...
How does accepting an answer work?
When should I do it?
Why can't I accept my own answers right away?
Which answer should I accept?
Return to FAQ index
I would comment on that to a few people, but it looks sort of bad seeing as how my answer has a few more votes than the others and none are accepted. Sounds kind of like repwhoring.
The code below works for me. How could this work? Wouldn't this segfault?
char * buffer = new char[100];
float * in_buf = new(buffer) float[100];
Also i got a class like this:
class Item
{
public:
Item(int num)
{
u = new float[num];
v = new float[num];
}
float * u;
fl...
Uhoh. Bad news for another generation of C++ learners:
Oh no, he's writing another edition... http://www.amazon.com/The-Complete-Reference-5th-Edition/dp/0071634800/ref=dp_ob_title_bk (One can only hope it will be better than his previous books...)
Screenshot
Use /command shortcuts to perform common chat tasks:
See message history inline:
Easily preview replied-to messages:
And much, much more...
About
Legends tell of a prolific Meta Stack Overflow chatter who despised using their mouse above all things. In an effort to keep t...
@keith.layne @keith.layne That script is what I use. But don't forget the 'reply to arrow' that appears on hovering at the right side (!) of a message:
Oh, I do remember. I've been spending a few days of the holidays migrating a server and our desktop (Solaris->Debian and Ubuntu->Mint)
We didn't have plans on the first XMas days, so 'it didn't count' :) Also, I think I can find evidence that I did spend family time despite a major fuck up - around that time. Let me find...
Screenshot
Use /command shortcuts to perform common chat tasks:
See message history inline:
Easily preview replied-to messages:
And much, much more...
About
Legends tell of a prolific Meta Stack Overflow chatter who despised using their mouse above all things. In an effort to keep t...
@keith.layne Maybe you can just toggle it back off, there is a grace time (like with most flag/vote buttons on SO). It is rather short, IIRC (edit not sure anymore: perhaps there is not 'recovery' in this case)
crap, I put the default JDK on my project to 1.7, hoping to piss someone off, but now I've pissed myself off, because it's not installed on this computer. Fail.
I need to access an environment variable remotely. To do this I think the best way is to read it from registry.
Where are environment variables stored in registry?
I can imagine stupid performance questions like: "Why is this code so much slower with the newer version of XX". Answer: Because MS wanted you to use environmental variable instead of global variables.
Or "Why is my code crashing when I run multiple instances of it". Because race-condition on environment variables because XX retarded library started using them instead of normal globals.
Rare Candies I never "consume". I use them for checking IVs. But I never have to buy them since they accumulate after having been through the games so many times.
@chris btw, I don't think the fact that you haven't used Boost affects its quality or applicability or anything, so yeah, what's the problem with advertising? (:
oh I see, cool (si y'avait pas une majorité de monde qui parle anglais on pourrait parler français loll, des plans pour que quelqu'un dise que ca compile pas xD)
We get used to this, I personally never had problems writing in french at school but most people still fail to spell it right
a good example would be the classic algorithm to convert an int to its number name (string); in english = easy, in french = if (...) else if (...) else if (...) lol
@Fred there are some great opportunities.. but I don't think it's because of PHP in particular, more like web development is at its peak; I'd rather be using something else, though; I'm desperately looking for a job using node.js, but I haven't seen any in Brazil yet
the funny thing about recent web development is, IE still can't fully support html5 features and some are still using IE6 (IE5 in worst cases); if next generation games are in html5 canvas / webgl, IE users will complain a lot but will understand XD
for now, we still put some weird fallbacks to allow IE6 to not kill himself
@chris Well yeah. I don't care what the pedantics says. "Never cast malloc() in C - ever... blah blah". I don't give a shit. If all it takes is a simple cast to make it compilable in C++, then of course I'll do it.
@Fred it's so fucking horrible because I don't think IE has gotten any better at all compared to other browsers in absolutely any aspect whatsoever, and even if it did get better, I'm sure once they reacquire the market Microsoft is going to do something evil with that power again
@n2liquid Firefox is being more and more of a bloated CPU hog... It's not bad enough to the point where I'm ready to switch to chrome, but it's getting there.
@Mysticial well.. I've been using Chrome for a while now, and while I don't really notice Firefox draining my resources, I know it has its problems; but in the end I really only use Chrome because it looks better, works really good, implements cutting-edge features, and has a source-code that's cleaner than Firefox/Gecko
@Mysticial (not that I have to deal with that code, but I'm sure easier, newer code generally means less bugs, speedier updates, more developers, hence more creativity going on... overall healthier than Firefox's old codebase)
@Mysticial FF's point of view is to do many things (that you don't necessary want it to do), but it's sure way better than what IE does that you don't want
It's not the CPU hog part that bothers me. I have enough cores for it hog all it wants. But the fact is that when it's at 100% CPU, all the other FF tabs freeze.
So I'd be scrolling, and then hard freeze for a couple seconds.