« first day (195 days earlier)      last day (4756 days later) » 

2:00 PM
class Foo
{
    int bar;          // DEFINITION
    static int baz;   // DECLARATION
};

int Foo::baz;         // DEFINITION
 
@DeadMG meh????
 
@TonyTheTiger pointer to a struct of the type SomeClass, right??
 
and resbuf* means a pointer to an instance of the type, probably a struct, called a resbuf
 
Now in..... structs worthless.... @DeadMG go!
 
@DeadMG that's what I meant
 
2:01 PM
Thanks @Xaade. Next up on DeadMG's Laws of C++™: Don't use static variables because they suck!
2
 
it could be like this too struct resbuf *SomeClass::myVar = NULL; right??
 
@DeadMG : That's right..... random globals declared superior by @DeadMG.
 
yeah
 
really?!?!?
static variables suck?
 
ok.
@Xaade depends of its usability from my point of view.
 
2:02 PM
yes they suck, when they're global
 
honestly? the fact of the matter is that on my specific platform, the Standard input handle is a process global variable
so the Standard C++ library has absolutely no power to un-globalize cin in reality
wait a minute
I didn't declare any globals superior
 
Wait wait.... how can statics be NOT global. All you can do is throw the class in a namespace which doesn't do anything to scope?!?!?
 
yeah, but I didn't declare any statics superior either
 
@DeadMG + English.
 
@StackedCrooked : Subbed or Dubbed.
 
2:06 PM
subbed
dubbing is way too bad if there's other noise- like the original noise, for example
 
@DeadMG Cause Japanese women voices are sexy?!?!?
 
where the fuck did japanese schoolgirls come from?
2
 
What?
What are you talking about.... I didn't say anything about that.
cough
 
1 min ago, by Xaade
@DeadMG Cause Japanese schoolgirl voices are sexy?!?!?
 
Huh
I don't see that.
cough cough
 
2:09 PM
lulz
 
no, not lulz, a waste of time
 
The feminism filter changes "girls" to "women".
 
sbi
@Xaade Would that make @Tony a dwarf? :)
 
@DeadMG lulz
@sbi what?
 
@DeadMG : Waste.... I found humor.
 
sbi
2:11 PM
@DeadMG Japanese schoolgrils commonly from their Japanese parents. (And, yes, that "fuck" plays an important part in their production process.)
 
right
 
@StackedCrooked : Dam politics..... they keep holding the water in reserve.
 
note to self: stop coming here
 
@DeadMG you sometimes just come across as someone with either a very dry sense of humor or very serious and blunt, not sure which
 
sbi
@TonyTheTiger Weren't seven rings given to the dwarfs?
 
2:12 PM
@sbi I corrected that.
 
@Xaade Yeah, damn fluorized water..
 
@sbi yea and, so that makes me one of them? :P
 
@TonyTheTiger It's nerd-style "matter of fact"-ness.
 
@TonyTheTiger : YAY... I started an inside joke.
 
@StackedCrooked it's definitely an interesting way of things...
 
2:13 PM
lol
 
@Xaade why'd you remove the friends line? I was about to comment on it
lol
 
@TonyTheTiger : I find irony hilarious. I have to keep reminding myself, because others don't. I often find something funny and repeat it as so, and people are like... huh?
 
sbi
@TonyTheTiger If I'm to represent to mortal men (how fitting, given my avatar) given nine rings, then you, given seven, would represent the dwarfs. Mhmm. That would make @Dead an elf, I guess. Oh well, how was that saying: "all analogies break down somewhere..."
 
@sbi hahahaha :p
 
@sbi : DeadMG has a dog avatar.... and they live forever. Or so my dad said after Spot ran off.
 
2:16 PM
@Xaade lol
@Xaade and you're gullible by any chance?
quite proud to be a dwarf :p
 
@TonyTheTiger : Tigers eat cereal.
They were just playing with the antelope.
 
@Xaade cereal with meat in it, yes :)
 
Chickens eat meat too.... Chickens eat chicken meat.
 
@Xaade cannibals, ewwww
 
sbi
@Xaade Welcome to the club. <pavloving> There's a an alligator to sit on over there, you can have some of the cat, you may fondle the chocolate, but be careful with that seat over there. (What do you mean, I got that mixed up? That's part of the routine!) </pavloving>
 
2:18 PM
oh lulz, now we're going into cannibalism, and it's me again, mentioning it
 
My neighbors chickens were my garbage disposal. He sold weird tasting eggs.
 
@Xaade I don't wanna know what you fed those poor animals
 
sbi
@Xaade I remember that Gary Larson comic, where the cock lies sick in bed, and his hen comes in, with a bowl on a tray, and says something like "Stop complaining! It's not somebody we know, and it's good against the flu!" (Chicken soup, in case you still wonder.)
 
@sbi I didn't know that Gorillas and Tigers could live so peacefully together, hmm :P
 
sbi
@TonyTheTiger On fact, nobody knows, because they never meet in the wild.
 
2:22 PM
@sbi lol
unless you consider this place "the wild"
 
sbi
@TonyTheTiger "In the unexplored wilderness of the C++ chat room, cats, dogs, gorillas, penguins, and a few humans congregate to discuss Indian sex rituals, whores, Singletons, static variables, Java, and other atrocities, and sometimes even - gasp! - C++, while the meta police has learned to turn a blind eye."
4
 
@sbi epic! but you forgot kamasutra :P
 
sbi
@TonyTheTiger Better? :)
 
@sbi yes much better :)
 
my problem did not solve yet..:(
 
2:27 PM
@sbi A C++ Cafe IRL would be nice :)
 
@StackedCrooked where though, cuz we all live in different countries?
 
sbi
@Miss They rarely do. Usually you'll have to solve the problems. That's called "work".
3
 
@TonyTheTiger Everywhere. Like Starbucks.
 
@StackedCrooked well I've been trying :p
 
sbi
@TonyTheTiger What do you mean, where? In Berlin, of course, where else?!
 
2:28 PM
@sbi lol :P
 
@sbi well right
i have to do
and i will do.. i will get success..
 
@sbi class IBerliner { ... };
 
work? what's that? did I ever do something like that?
 
Never mind that. Just toying around.
@TonyTheTiger Work? That's like what the people do that fix the roads.
 
@StackedCrooked oh yea, so I haven't ever done anything of that nature... oh I'm lucky :P
 
sbi
2:30 PM
@StackedCrooked A "Berliner" is something to eat:
 
@sbi Cannibalism again? :)
 
@sbi I LOVE those things :) :) :)
 
sbi
@StackedCrooked Look, there's even blood involved!
 
@sbi In our country we call them "Boules de Berlin" I believe...
 
@StackedCrooked yes, that's what they're called in this shithole called Belgium.
oh was that offensive?
 
2:32 PM
@TonyTheTiger I don't know if Belgium is a shithole. I have never lived outside of it. Can't compare..
 
@StackedCrooked I have, and imho it is.
 
@TonyTheTiger It was offensive towards our Royal family, certainly..
 
@StackedCrooked lulz, couldn't care less....
 
sbi
@StackedCrooked In fact, "Berliner" being a food term (not in and around Berlin, BTW, but the inhabitants of the city recognize the term), makes Kennedy's famous sentence "Ich bin ein Berliner" (which he spoke to the West Berliners when West Berlin was blocked by the Soviets) somewhat funny.
 
hey I have this function myFunction(const TCHAR *key, int mode, DWORD dwThreadId, bool LSP_SDS)

but when it calls the function it just pass 2 parameter instead of 4.

what that means, is it some diferent kind of method??
 
sbi
2:33 PM
@StackedCrooked Well, I don't know any French (except for "merde", of course), but even I see that this is essentially the same. :)
 
@sbi lulz
 
sbi
@cyberrog No, it doesn't. It passes three parameters to this function.
 
@sbi what languages besides English and German do you speak? if any?
 
@sbi I think here they have less bread and more cream though...
 
@sbi three?? where did u see three parameters?
 
2:35 PM
@TonyTheTiger Gibberish? :)
 
@StackedCrooked hahaha
meh
 
@TonyTheTiger I don't think that in most countries foreign languages are thaught much. I think Belgium is an exception were kids have to learn Dutch, French, English and German..
 
sbi
@TonyTheTiger None, really. I was taught Russian in school, but forgot it as soon as possible (before I graduated, actually), although with a few weeks of tutoring on site I might be able not to starve if stranded among Russians. (At one point in my life this helped me to learn enough Czech nouns and numbers to be able to shop groceries, so that hope is well-founded.) Besides that, only German and English.
 
@StackedCrooked tis true
 
so??
 
sbi
2:37 PM
@cyberrog Where and how did you see two?
 
@sbi well that's not bad at all :) I couldn't speak or learn Russian even if I wanted to.
 
@sbi After a few beers I start to see even more paramters.. :$
 
im my program
 
sbi
@StackedCrooked Well, my point was that what @cyberrog said makes no sense.
 
@cyberrog Isn't it amazing how spectacularly bad some people are at formulating questions?
 
2:39 PM
forget about it.
 
sbi
@cyberrog But what do you mean?? Will the compiler accept if you write a call with only two parameters, or does the debugger trick you into believing that?
 
sorry.
 
How are we supposed to may any sense out of it?
 
@sbi I didnt wrote the code, im doing a maintenance
 
@cyberrog don't worry though, it's just that the frustration built up from certain other individuals on this chat.. :)
 
sbi
2:40 PM
@cyberrog For heaven's sake! Please at least tell us if the code compiles, links and runs!
 
yeah it runs perfectly
i just want to understand why that happen
 
@sbi : I think you have a great TV series going on there. Just throw in some random secret numbers, bash up a printer, and analyze some bones.
 
and the function is like that myFunction(par1, par2, par3, par4). and when it calls the funtion, it calls like that myFuntion(par1, par2)
just like that. passin 2 parameters instead of 4
 
@Miss : Yeah, I have that problem too, I keep staring at my computer screen, but the memory leak just won't go away.
 
sbi
Ok, here, take my hand, I'll walk you through Asking Questions 101:
1. Show us the exact declaration, and the call. Paste it from the code.
2. Tell us whether it compiles, links and runs. Mention your platform/compiler.
3. If it runs, tell us about the effects you are seeing and what you would expect.
And that's the minimum!
@cyberrog myFunction(par1, par2, par3, par4) is not a valid function declaration.
 
2:44 PM
@StackedCrooked : You have a royal family?!?!?! Don't contribute to society, waste a lot of money, try to be the center of attention..... Woah.... royalty are like hippies.
 
@cyberrog Did you overload the comma operator for the argument types?
 
hey
hey
 
@sbi no. I told ya. i didnt built the code. im trying to understand it, so I can do the maintenance
 
@Xaade Yeah. They are basically not much more than a cost .
 
hey
are there any English people who knows english very well?
 
sbi
2:45 PM
@StackedCrooked Actually, I was on a mission to fill that starred area on the right all by my own today, but I just had to star that one.
 
forget about it. im gonna try here. thanks for help anyways.
 
@TonyTheTiger : I speak English, and southern.
 
hey
Is it correct to say "People who are from 18 years old to 30 years old"?
 
sbi
@cyberrog I've written down the steps. Either you follow them, or stop bothering us. As it is, this isn't answerable.
 
@sbi ok.
 
sbi
2:47 PM
@hey You'd suppose there are English people who know English well. They managed to create their own literature, after all.
 
@hey : Shorter to say, "People from 18 to 30". In this context, age is an understood. It's not formal, but most all understand it.
 
hey
@Xaade, thanks
 
sbi
@Xaade Like, Cornish? :)
 
@sbi Cool, thanks :)
 
You could say, "People 18 to 30 years old."
 
sbi
2:49 PM
@Xaade "between"?
 
hey
programming is sooo cool. do you agree with me?
:D
 
@sbi : No need for between
 
sbi
@hey How come I can tell from that alone you haven't been programming for long?
 
@hey No, I think it's soo cool, not sooo cool. :)
 
hey
:D
 
2:50 PM
People 3 to 5 feet tall. Buildings 1200 to 2500 square feet.
 
@hey As a punishment you should have to maintain the code you write today 5 years from now.
 
sbi
@Xaade There'll always be a need for "between". Anyway, I meant "people between 18 and 30."
 
People aged 18 to 30. Whatever.
 
between is understood
It depends on if you need formal, or if it's ok to fudge a little.
 
@Xaade "between" is ambiguous for my nerd-brains. I don't know if I should include the boundaries.
 
2:53 PM
Between is required whenever you're using it for a positional.

I stood two buildings => I stood between two buildings.
 
sbi
@StackedCrooked Actually, while that seems a very appropriate punishment when you think about it (the worse the code, the worse the punishment), I have found that in practice it doesn't work that way. Those who write bad code are used to staring at bad code all day to find their ugly bugs, and won't mind half as much as you'd do had you to deal with their code.
 
@Xaade Well, that clears it up! :)
@sbi You're probably right. I however, dare not to look at my 5 year old code..
 
sbi
@Xaade Ah, Ok. Well, having learned most of my English in American kitchens and on the Internet, I don't do formal at all. :)
 
@sbi : That's why you need to formulate loose designs and have them peer-reviewed.
 
sbi
@StackedCrooked Then your salvageable.
 
2:55 PM
I learned English from reading books on magic (sleight of hand).
 
My 5 year old code..... looks like a retarded kitten did it.
 
@Xaade It has paws all over it?
 
No, just coding very procedurally in an object oriented programming language.
God classes and such.
 
sbi
@StackedCrooked Oh yeah, I forgot about that. The last ten years I have likely read more English books than German ones. But by then, the damage was already done. (And reading Tolkien, and then using words like "alas" won't help you much either.)
 
2:57 PM
@sbi hah... tolkien english.
Alas by the name of elune.
 
sbi
@Xaade Yeah, you laugh. I did this. Still makes my face turn read when I think about it.
 
@sbi Same here, reading Dutch books has become so uncommon that I'm experiencing it as a pleasant novelty.
 
Alas, by the grievous demeanor of the programmer. Thusly, code sunk into oblivion.
 
@Xaade One code to rule them all.
@sbi Must have been a cat with autism.
 
sbi
3:02 PM
@StackedCrooked LOL!
 
:)
I find myself unable to be productive today.
4
 
@StackedCrooked Just today?
 
sbi
room topic changed to Lounge<C++>: Where I find myself unable to be productive today.
 
@PiotrLegnica Mostly today..
 
@sbi : Holy shit-cat.
 
sbi
3:05 PM
Long overdue. The old motto's already been one or two days old. Stale room mottos are meek.
 
@sbi Is my brain broken if I can read this with no problems?
 
The work I have to do is very uncreative. Splitting classes into smaller more modular ones.
 
room topic changed to Lounge<C++>: Where the cat in the cradle jumps over the moon onto sbi's keyboard and types &S)(^D)S)(^XC(X&^
 
Sometimes this is interesting. But not today.
The newbie hints are no longer in the sidebar now.
 
room topic changed to Lounge<C++>: Lounge<C++>: ... Lounge<C++>: ... ... Lounge<C++>:
 
sbi
3:08 PM
@PiotrLegnica Your brain is broken when you think reading this is something to boast about! Understanding it, not reading, is the hard thing.
 
greets
 
@sbi I implied understanding. :P
 
@PiotrLegnica No, but you're a brag.
 
sbi
@StackedCrooked Oh, right!
If you are new here, please read the newbie hints. Thank you.
11
 
@StackedCrooked I have to brag about something.
 
3:10 PM
@PiotrLegnica : You can't have possibly understood that. If you did, you were wrong; If you were somehow right.... it was random. If it were somehow not random.... you aren't right in the head.
 
sbi
Wow, you guys are awesome fast! That one had two stars before I could pin it!
 
@sbi : I used a macro.
 
I was first! (bragging again)
 
sbi
@PiotrLegnica This is the C++ room. Don't try to imply here. You need to explicitly declare anything you want to pass by our compilers.
 
@sbi : Right.... I only read through a compiler....... my brain is a virtual machine.
 
3:12 PM
@PiotrLegnica Are you implying that you have small penis? Or am I reading to much in this?
 
sbi
@Xaade Cheater!
 
@StackedCrooked : Shit... I actually read that....
 
sbi
@StackedCrooked Oh no! Now we're really down to the basement of the subject department...
 
@StackedCrooked Yes.
 
sbi
@PiotrLegnica LOL!
 
3:13 PM
I wish my virtual machine brain had a filter on the precompiler. So many things I wish were unseen.
 
@PiotrLegnica Ok! Just checking.
 
@sbi What? I was answering the second question. :P
 
sbi
@Xaade Yeah, someone pass me the brain bleach, please!
 
@sbi : New brain bleech, now 200 proof.
 
sbi
@PiotrLegnica Of course! Still, answering an "A or B" style question with "Yes" (or "No", FTM) is a classic and always good for a laugh.
 
3:15 PM
@Xaade If you drink 0.5 liter of Wodka right now you may have forgotten by tomorrow.
0.5 - 1 liter YMMV
 
sbi
@Xaade "proof"? Do you mean "rep"? I do have 200 rep to spare, and if spending that makes me not having read that question, it might be worth the money.
 
And if you drink it all at once it might be because you're dead.
 
@StackedCrooked : The better question is if I ever have. There seems to be something missing in my memory. Last night.... where was I. There's this video of a guy on the news that looks remarkably like me.... and oh what's he doing naked on the top of that building????!?!?!??!!
 
@Xaade We're talking wodka here, not meth.
 
sbi
@PiotrLegnica No, we're not all @Dead. Only @DeadMG is @Dead.
 
3:17 PM
@sbi Proof = %Alcohol by volume * 2. Ergo, 200 proof = 100%
@sbi : I'm un@Dead ... but that's another story.
 
@Xaade Oh, you crazy Americans.
 
@Xaade Yeah, and when you try to regain your lost memories by reading the chat transcript you are suddenly back at the starting point.
 
@PiotrLegnica That we use proof?
 
sbi
@Xaade And I thought the proof is in the pudding?
 
I think proof is a simple "stupid" mechanism, so that stupid people don't drink something over 50% by volume.
Otherwise.... I don't understand it's value?
I can make up measurements too.... Like the idiot stick.
The way it works is you put a red mark on a yard stick and say, anyone at the red mark is an idiot. Then when you measure someone you hold the red mark at their height..... "Yep... you're an idiot."
 
3:21 PM
@Xaade Some time ago in the liquor section of local supermarket I saw a "Bottle of 97% alcohol". No brand, just this.
 
I'd think 50% is more meaningful than 100 proof, percentage is a natural thing for volume of something in something.
 
@StackedCrooked : Did they highly encourage you to drink it at the store.... and did they have a bathtub full of ice in the back. Be careful.... I was in Brazil this one time.... and..... ... I'm lighter now.
 
@Xaade No, it just stood there on the shelf. I found it remarkable.
 
@StackedCrooked : Really. I'd think anything that remarkable would stand up and stick a funnel in your mouth.
 
yay 20k. i dont know if this is a good thing or a bad thing
 
3:26 PM
@JohnDibling : Can I borrow some if it turns out to be a bad thing????
 
@Xaade: Sure :)
 
@JohnDibling You're a brag, just like @PiotrLegnica :)
 
@Stacked: Don't be a hater. :)
 
@JohnDibling I'm not really being hateful right now. More like ADHD-ful.
Does anyone know of an euphemism for "Fuck it, I'm going home." ?
 
"Oh how I love to be working here."
 
3:32 PM
It's remarkable how nice code formatting can make bad code look good.
 
@Stacked: "Beer O'Clock!"
 
Oh How I LOVE To Be Working Here! Now, Beer O' Clock!
 
@StackedCrooked That works both ways, the best code can suck if not formatted properly.
Like someone puts an opening brace on its own line, and your brain goes "whaaaaaaaaaaaaaaat".
 
@PiotrLegnica : That's coding standard here.
{ goes on it's own line
Apparently it looks better....?!?!?!
Even though it leads to more bugs.
 
4:00 PM
hy
VB 6.0 is product of Microsoft visual studio 2055 ... is it?
 
Yes, it's used exclusively in the future.
 
are you sure that VB 6.0 is product of MS VS 2005
 
@Miss: VB6 was from MSVC 6, which was way back in 1998
Not studio 2005
 
'Twas a joke, because you said 2055.
 
yes thats mean VB 6.0 is not provided in MS VS 2005
 
4:05 PM
On a more serious note, VB6 is a legacy language.
 
ohh sopps sorry
 
Microsoft discontinued it in favour of VB.NET.
 
actually i have MS VS 2005 CD
and i am sure that VB 6.0 is not provided there
 
VS2005 is ancient, too.
 
well no VB 6.0 is not provided in MS VS 2005
 
4:07 PM
I'm home!
 
i downloaded VB 6.0 and there was language package
 
@PiotrLegnica Yeah, but one of those two is easier to fix..
 
Yeah, MS discontinued it even before VS2003.
 
i suddenly click on any language
 
Why would you want to use VB6?
 
4:09 PM
so now my window has converted to another language
 
It's a terrible, outdated thing that should be buried in the past and forgotten.
 
i have to use for image processing
 
@PiotrLegnica I once did a job interview. They required me to do a programming test using VS6. I'm glad I didn't get the job.
 
If you really want to use Visual Basic, then use VB.NET, but really, there's no point when there's e.g. C#.
 
@PiotrLegnica I believe Konrad, if I remember correctly, favors VB because his dislikes the "ascii art" in the C family of languages.
Miss, you should try to put yourself in our shoes. How could we ever make sense of a bunch of fragmented blurts like "i suddenly click on any language", "so now my window has converted to another language", "i have to use for image processing"? Spend some time thinking about how to explain the problem first.
You know, when I ask a question on SO I often spend more than 20 minutes rewriting it until I find it presentable. You should probably do this too.
 
4:26 PM
hmm ok thanks i will do like that
 
4:36 PM
@stackedcrooked: i downloaded VB 6.0 from net and there was a language pack folder.. from there i clicked on any language, and then my system window changed to that language
i try to recover this problem ..i mean i did't find way converting to english language
due to this problem now my opera is not working
and its i am getting this error
and beside that opera error there is language pack window
i mistakenly click on any language .. so now my English window is changed to other language ..
 
That is more suited for SuperUser.
 
i try to look on that problem that how can i convert back to this in englsih language
 
sbi
@PiotrLegnica I already said that. SHe won't listen.
 
@sbi what did you say to me..
 
I would think that a programmer would be able to figure such things out on his or her own.
 
4:43 PM
i am pretty sure that there is some way to convert back to english language
 
"Restore default language", maybe?
 
but i am still looking... if until tomorrow i did not find way... then i will install window again..
well yes i did restore but not usefull
 
OS reinstall. Nuke and pave gentlemen, nuke and pave.
 
The thing is, XP did not have language packs like that, when you're using unofficial mods, then don't be surprised that something doesn't work.
 
sbi
@Miss If you don't stop this soon, one of us vociferous protester against the ban on tina will turn Saulus and report you for getting on our nerves.
 
4:45 PM
OS reinstall is usually overkill.
 
@Miss: You are a programmer. Figure it out.
 
@PiotrLegnica Ask the guys you have to deal with people like that on daily basis :)
 
sbi
@JohnDibling You wish.
 
@Eugene: Thing is, we're not a freaking help desk.
 
If you need to reinstall the system, then restoring system files might do just the trick.
 
4:46 PM
stop it please .. i am just discussing my problem
 
sfc /scannow, IIRC.
 
and if i did not find any solution then defiantly i will reinstall it ..
 
@JohnDibling That's exactly why suggesting reinstall is the quickest way to solve the problem (one way or another :))
 
(Also, XP is nearing end-of-life, you might want to start thinking about upgrade).
 
I used to work on a help desk in a law firm. Lawyers used to call me with questions like "How do I bold in WordStar." and I'd be like "you've got to be kidding. you graduated from Harvard and can't figure out how to bold?" <click>
I quit that job after a couple months.
 
sbi
4:48 PM
@Miss No. You stop it. And I won't even say "please" to that. You are forcing us to discuss your problem, when you are unable to even coherently formulate it.
 
@litb: grumpiness here; beware!
 
ohh. someone please protect me
 
sbi
@JohannesSchaublitb I'll do.
 
sbi
4:50 PM
@JohannesSchaublitb You wish.
 
@JohannesSchaublitb Maybe you can help Tina?
 
tina turner
 
sbi
@JohannesSchaublitb You wish.
 
@JohannesSchaublitb Thanks for the brain bleach!
 
You may not realize it but it improved my mood.
 
oh great
always glad to help
 
Does anyone know a convenient way of converting enum values to string and vice versa? I'm reading this post: stackoverflow.com/questions/201593/… , but I don't really like the suggestions.
@JohannesSchaublitb I'm counting on you.
 
@JohannesSchaublitb You should check this out: youtube.com/watch?v=54XRNQ2C2x0 It's actually quite good.
 
Xeo
4:57 PM
@StackedCrooked Best choice is either a macro which generates both or use a map<YourEnum,std::string>. Or if the enums start at 0 and are contigiuous use a vector<std::string>
 
i'm a kelly klarkson fan.
 
@StackedCrooked Eh, I just do enum Foo { A, B, C, FOO_NUM }; string fooStr[FOO_NUM] = { "A", "B", "C" };
 
recently i've heared hurts stay a lot :)
 
IMO it's better for simple enums than preprocessor tricks or whatnot.
 
@PiotrLegnica I think a switch is safer here. It's safer, in case some other dude adds or removes an enum value and forgets to update the array.
 
4:59 PM
@StackedCrooked Then the compiler will complain.
 
@PiotrLegnica How do you mean?
 

« first day (195 days earlier)      last day (4756 days later) »