RTFM? :)
and yes I know that's for 2003, but if you can't figure out how to apply that to 2005, you should probably start with something simpler than SDL :D
Type: Posts; User: ChaosEngine
RTFM? :)
and yes I know that's for 2003, but if you can't figure out how to apply that to 2005, you should probably start with something simpler than SDL :D
Scott Meyers talks about this exact problem in "More Effective C++" (item 31). Unfortunately, I don't think he actually manages to solve it, but at least you could head to your local library and have...
one way you could do it would be to use the boost.serialisation library and simply save the state of each class that has an option.
for instance, let's assume you're making a game, and you have...
use the standard library.
class card
{
enum Suite
{
Spades,
Hearts,
does it have to be in C? The best serial implementation I've ever used is pythons pyserial.
your loss, bro. You haven't "gotten under my skin", I was trying to help you. It's highly unlikely I'll ever have to deal with your code, so feel free to immerse yourself in all the misery of...
that looks pretty good. have you tested it?
Really? let's have a look at a piece of code then.
void SomeFunc(void)
{
int *x = new int[100];
SomeOtherFunc(x);
why do you need an "Options" class at all? Such a class has low coherence (it contains data relating to many functional areas) and high coupling (it introduces a dependency between unrelated areas)....
as King Mir said, that is not a correct use of auto_ptr. the functionality you want is provided by std::vector
as long as you're in a single-threaded environment, singleton is fine. If you're in a multi-threaded environment, singleton can cause problems.
bah! no support for New Zealand.
Sorry but I've read C++ for Dummies (one of my co-workers bought it). It's a terrible book. As Daved says, it teaches old "C style" C++. Avoid like the plague.
I'm guessing that was probably a joke, since most Irish people wouldn't actually be able to understand a full movie "as gaeilge".
Anyway, for my $13 movie ticket, Transformers was ....ok.
The...
This line neatly illustrates the difference between coding for fun and coding for work. I wrote my own GUI library in a job once too. It was really interesting and great fun. But I wasn't allowed...
If you don't care, why are you posting? :p
Well, Mario posted an explanation of a fact (i.e. that Libby was convicted of perjury).
There's nothing to respond to with your allegation. You've...
meh, too much like work. use a stringstream.
why?
I'm not sure it was either. But the point remains that, regardless of what went before, Libby did perjure himself.
Mario F. made the point in this point and I just haven't seen a response to that...
do you want the numbers as strings or integers?
i.e. array[0] = 103 or array[0] = "103"
I'd look at the stringstream class
I'm not sure what you mean by "outside of the Libby case".
If you mean, do I believe Libby prejured himself and committed a crime? Then the answer is yes, all the evidence would seem to suggest...
MacGyver, I'd like you to answer one question, with a simple yes or no answer.
Libby was accused of perjury and found guilty. Do you believe he did not perjure himself and was thus innocent?
ok, I've had a look into this.
compiling the attached file initially, I get the same runtime access violation.
Having a quick scout around the web, I found this page.
When I set the /EHa...
Are you sure about that? I know it can catch an exception, but an access violation? Surely that would cause undefined behaviour, and the program will fall over.
I don't see why you would test for...
Horses for courses. There's no way I'd use C++ to build a web-based commerce server. Equally there's no way I'd use java to build a cutting edge 3d engine or a large high performance system.
...