The a.out file is an executable and means that your code compiled correctly. You can specify the output binary file using the '-o' flag, i.e. 'g++ -o myprogram main.cpp'.
Edit: gcc compiles your...
Type: Posts; User: XSquared
The a.out file is an executable and means that your code compiled correctly. You can specify the output binary file using the '-o' flag, i.e. 'g++ -o myprogram main.cpp'.
Edit: gcc compiles your...
Hmm, I started programming back in grade 5 (~1995-1996, that seems like a looong time ago now) with QBASIC, then moved on to VB6. I didn't pick up C/C++ until 2002, which is when I started hanging...
All IRC commands must be terminated with \r\n.
I can't drink caffeine, due to it giving me migraines. And in my experience, it's a regular occurence at the CS club at my university for folks to randomly go off for beer in the afternoons....
http://xkcd.com/323/
That is all.
I'd say that's a bug in the VS STL. I don't have immediate access to the C++ standard, but size() is supposed to return the number of elements in the vector, which is zero if none are explicitly...
Aye, on gcc-4.1.2, they both create the same assembly code, I'd assume most other modern compilers would do the same.
I think it really depends on what type of job you're aiming for. If you're aiming for some type of graphics/game-related job, a raytracer would likely help. If you're more into systems/network stuff,...
In the Derived class, the int parameter to goo() is missing the const keyword.
Yep. I believe I posted a link to the talk a while back.
Aah. He had mentioned it briefly at a talk he gave at my university over the summer, and I just looked it up and it seems that they've put it off into TRs past C++0x.
If I recall, Stroustrup mentioned that C++0x was going to have some form of garbage collection in it (togglable at the compiler level).
std::ifstream foo(argv[1]);
std::istream fin(std::cin.rdbuf());
if(foo)
{
fin.rdbuf(foo.rdbuf());
}
n%k will always be < k, thus dividing the result by k will be < 1, and thus rounded to 0.
Most Linksys routers have a "DMZ" setting available, where you can tell it to forward all incoming connections from the WAN interface (the 10.x.x.x IP) to a specific IP on your network. That should...
Eh, for us it isn't that bad. Just 1500-2000 words analyzing something for the company we did a co-op term at. Luckily for me, my boss already filled out the evaluation form, so now I just need to...
Yeah, at work we used Doxygen as well for our customer-facing API docs. And thanks for reminding me to write my work report, Jeff. :P
In your example, things such as weap1name are only declared as parameters in your class constructor, not as actual instance variables. You'll need to add declarations for them within the class itself.
Could you post some minimal code that reproduces the issue, please?
This is likely caused by the output from printf being buffered before appearing on the screen. Try putting fflush(stdout) after the printf calls and see if that changes anything.
Another way of doing it (which should be more portable than QuestionC's second method) is to set each directory as a target:
default: dirA dirB
dirA:
mkdir dirA
dirB:
mkdir dirB
Turns out that Texas A&M won't allow videos of their profs lectures to be posted online, and apparently this type of lecture is included in that rule.
It's unfortunate that we won't be able to post the video of the talk like we do for the rest of the events that we run, because it was definitely a neat talk.
Actually, it was about 10 of us from the CSC (folks who ran the event) who ended up going out with Bjarne to the Bomber after the talk for about an hour. Really cool guy.
The talk was quite interesting. He clarified that it isn't yet C++09, but he hopes that it will become that (if not, C++0xA). He did mention the topic of smart pointers, but also mentioned that they...