« first day (402 days earlier)      last day (4555 days later) » 

5:00 PM
@RMartinhoFernandes both version of exchange accept pointers to vector<T>* , how does overload resolution selects previous version which actually exchanges the internal data pointers?
 
@MrAnubis That's part of the overload resolution rules, I think.
 
sbi
@RMartinhoFernandes But that's one of the main problems very many tutorials and books suffer from: their examples focus on one problem, and concerning everything else the code is so bad, it makes your toenails curl in disgust. When those in the know exchange code, they focus on what the code was created for, and simply overlook the bad aspects. Students, however, aren't in the know, and simply learn to write bad code. Many C++ books are guilty of this.
 
@RMartinhoFernandes The grammar. :F
 
@RMartinhoFernandes then atleast author should have wrote that in the example but he didn't , darn!
 
In fairness, the code in the book is not for vectors.
 
5:04 PM
http://www.amazon.com/How-Be-Pope-Where-Vatican/dp/0811852210/ref=sr_1_1?s=books&ie=UTF8&qid=1321981444&sr=1-1
there is indeed a book for everything
 
sbi
@RMartinhoFernandes What? Well...
 
@RMartinhoFernandes I had to use vectors nor I had to post whole code of Array<T>
 
@sbi It still doesn't explain the pointers, but it kind of eliminates the problem of the different lengths.
 
@MrAnubis I'm pretty sure you wouldn't have to do that
 
sbi
@EtiennedeMartel Actually, that's wrong. What C++ needs badly is a good, up-to-date book about managing large C++ projects (Lakos used to be good until 15 years ago) and one teaching the combination of paradigms which is what really makes C++ shine (Coplien's book on that also is way too old).
Anyway, I need to leave.
:q!
 
5:08 PM
anyways where i can find some templates exercise, some small library? or should i think of custom allocator? good idea?
 
No.
Well, unless you want an allocator exercise.
 
Write something. It's bound to need templates. Right?
 
@MrAnubis custom allocator == bad idea
 
Let's write a book.
 
@RMartinhoFernandes yes :)
@keithlayne hmmmmmmmmmmmm...................................................................‌​.................................
:)
 
5:12 PM
What.
 
That came out wrong.
 
:( , my bad english
 
@sbi So you still remember something, heh? ;)
 
Damn, I missed it.
 
noremap ; :
 
5:14 PM
That's not very useful to me.
 
@CatPlusPlus morenap!
 
Yeah, I keep pressing Shift out of habit anyway.
 
I need to press Shift for both.
 
Oh, right, silly keyboard layouts.
 
Un-shifted they yield . and , which are already used for something else.
 
5:18 PM
NOTE: I may not be appearing on this chat room for maybe the next 5-6 months due to the approaching doom; i.e my Cambridge O Level Exams... :(
 
Nothing to see here.
Wow, we can move deleted messages. How pointless.
 
how do i move my own deleted post to that sandbox?
 
You need to be a room owner.
You can just refresh the page and you won't see it anymore.
 
@IntermediateHacker I just looked at your profile...
 
@keithlayne thanks... I guess.
 
5:26 PM
more to follow....
 
@CatPlusPlus Shush.
 
@RMartinhoFernandes i can still see the reflection of that deleted post of mine :(
 
suspense...
 
Oh well, wait it out. It stops showing after a while.
 
lol
 
5:27 PM
Yeah, it's bit silly.
 
@IntermediateHacker you might want to remove a reference to Herb Schildt, or some people around here might attack you
 
Wait, what?
 
Schildt? Where?
 
Who's Herb Schildt?
 
5:28 PM
@IntermediateHacker see?
 
A guy well-known for writing very bad C++ books.
 
@keithlayne but why? why do people hate him?
 
These sergeants ( @keithlayne and might be others ) have become 007 bond too !
:D
 
> C++: The Complete Reference (ISBN 0-07-8816548, Osborne, 1991)
 
DISCLAIMER: I have ABSOLUTELY NOTHING to do with the guy named HERBERT SCHILDT. Don't attack me...
 
5:29 PM
Right.
 
@IntermediateHacker rofl
 
cpx
@RMartinhoFernandes oh can you both see and resurrect?
 
@MrAnubis What do you mean? Who ordered martinis?
 
Yes, we're awesome.
 
5:30 PM
@RMartinhoFernandes @IntermediateHacker did?
 
I look and sound just like Sean Connery.
 
1 min ago, by cpx
@RMartinhoFernandes oh can you both see and resurrect?
Dammit, room owners have divine powers?
 
yes i guess
 
@cpx No idea what you're talking about.
 
What the hell.
 
5:31 PM
@IntermediateHacker at least you put where you're from on your profile, that's the main thing I look for, I find it interesting and gives some small amount of context when talking to people
@IntermediateHacker I don't know if others are just paranoid or too lazy to fill out the form.
 
@keithlayne thanks. I wonder why other people don't put it.
 
You get a badge for it!
 
my profile info is awesome :D
 
I need to get some badges
 
@IntermediateHacker Well, if you're on the Vatican you can easily be stalked from that information alone.
2
 
5:33 PM
Lol.
 
lol
 
Seriously, any one of my university's campuses is bigger than the Vatican.
 
It's not that funny without context.
 
campii
 
5:34 PM
Campii is not a word, silly robot.
 
:D
 
Of course it is!
Do you say campuses?
 
just campus?
 
It's plural.
My university is that awesome.
 
Yes, campuses.
 
5:35 PM
campus (plural campuses) [Oxford Dictionary]
Human > robot
 
@CatPlusPlus That's what I said.
@IntermediateHacker We'll see who's first against the wall when the revolution comes.
 
@RMartinhoFernandes robot god of the chat room
 
You can't change the past, you're just creating new timelines.
 
Hawking said traveling back in time is impossible
 
This chat room is ruled by cats. We need more hieroglyphs in the topic.
 
5:37 PM
You can change the past if you're Big Brother.
 
Didn't @MrAnubis worship cats?
 
and that "travelling into the future" can only be done by relativistic effects
 
Sorry, I'm travelling into the future.
 
This Hawking guy sounds boring.
 
In fact, I travelled here from 1987 just to tell you that.
 
5:38 PM
@CatPlusPlus he's not very animated
 
The Hawing guy IS boring
 
I think FF dictionary is broken.
 
I'm myself from 5 minutes from now.
 
A Brief History Of Time was the most boring book I ever read
 
@IntermediateHacker FireFox?
 
5:39 PM
@IntermediateHacker It was better than anything by Schildt
 
Cats (Felis silvestris catus), known in Ancient Egypt as mau, were important in ancient Egyptian society. Beginning as a wild, untamed species, cats were useful for limiting vermin in Egyptian crops and harvests; through exposure, cats became domesticated and learned to coexist with humans. The people in what would later be Upper and Lower Egypt had a religion centering around the worship of animals, including cats. Praised for controlling vermin and its ability to kill snakes such as cobras, the domesticated cat became a symbol of grace and poise. The goddess Mafdet, the deification o...
 
@IntermediateHacker "Time started. It didn't end yet. THE END."
 
I guess the ancient egyptians were into onomatopoeia
 
@IntermediateHacker I am new avatar of Anubis , we moved on to C++:D
 
Yes, they all yelled "slap" when slapping each other. True story.
 
5:40 PM
@keithlayne My profile has now been censored for optimal Schild-Hater viewing experience
 
@IntermediateHacker just trying to help
 
My profile is the limit of possible profile awesomeness. You can just try to approach that level.
 
@keithlayne my comment wasn't personal, I've seen a lot of schild-hatred on forums and other sites too. thanks by the way.
 
@IntermediateHacker I'm only serious when...um I don't know. Not too often. Don't mind me.
 
5:43 PM
@IntermediateHacker well, his books suck. That's just how it is
 
room topic changed to Lounge<C++>: Leave your seriousness at the door. [c++] [c++11] [c++-faq]
 
I don't mean to brag, but my SUPER COOL profile is way way WAY better than everyone else. muhahah!
 
Now we're no longer protected from vampires.
 
Crap.
 
And then something happened.
 
5:45 PM
79 more boats and I get gold badge.
He's cycling through failure states.
 
@CatPlusPlus row, row, row your boat
 
@CatPlusPlus your real name is too easy to find by SO stalkers
 
What real name?
 
My first name is not really secret.
 
5:46 PM
Yes, it's "Cat".
 
I don't remember if I ever used my last name online. And even if, who cares.
(Well, publicly.)
 
I thought your last name was "Plus".
 
BasementCat ?
 
Frankly my last name has been the source of constant pestering at school for the last 8 years.
It's weird.
even I don't know how to pronounce it.
 
I think internet anonymity is overrated. Except when I'm looking at ch^H^H porn.
 
5:49 PM
ch^H^H porn ? new kind of porn?
 
@RMartinhoFernandes Joke's on you. It's "Plus Plus".
 
@IntermediateHacker Probably not as bad as a kid that went to school with me, his name is Anas
 
@MrAnubis Not really.
 
@Praetorian lol. :D
 
5:49 PM
@CatPlusPlus But, "Plus" is your middle name!
 
@Praetorian reminds me of an old SNL skit
 
"NO-BREAK SPACE" is my middle name. It's pretty easy to miss. And don't get me started on filling forms.
 
@CatPlusPlus Ur middle name is ignored by most text formats.
 
Who needs middle names anyway?
 
5:52 PM
Middle people.
 
from the Middle East
 
can anyone tell me ch^H^H? , my knowledge went too low in my favorite subject i think :D
 
... or the Middle West.
@MrAnubis It's nothing!
 
Or the Middle Middle.
@MrAnubis You don't want to know.
 
Middle Earth
 
5:53 PM
Really, ch^H^H is nothing.
^H is backspace.
 
@MrAnubis u'r getting corrupted.
 
I guess I should have gone all in or not at all
 
@RMartinhoFernandes thanks :)
 
That comes out not so right, too.
 
It's an old-school strike out.
puts a gorilla voice You younguns don't remember that.
 
5:55 PM
fucking solaris...bad memories of ^H
 
anyway , see you later ( perhaps after 5-6 months) , :(
 
Toruk makto!!
 
bloody O Level exams.
 
And I still don't get what the ch was going to be.
 
You're going to the moon?
@RMartinhoFernandes Really?
 
5:56 PM
Given the context, I probably don't want to.
 
@keithlayne Avada kedavra!!
 
@RMartinhoFernandes I'm disappointed
 
I mean SERIOUSLY.
 
anyway , bye.
 
5:57 PM
@IntermediateHacker good luck for your exam :)
 
@MrAnubis isn't that from harry potter or something? Did you just kill me?
 
lol
@IntermediateHacker There, I starred it.
 
STARRING DOES NOT WORK THAT WAY. GOOD NIGHT.
 
@RMartinhoFernandes @CatPlusPlus damn u. talk about parting on good terms
 
5:58 PM
@keithlayne 0_o , Aah reply from zombie :)
 
And another reference almost nobody gets. :(
You people are streets behind.
 
I REQUEST THAT THIS MESSAGE BE MOVED TO THE SANDBOX . (reverse psychology works on robots)
 
My little girl was sitting on my lap when I typed that about the porn...I just couldn't type it
 
But you could type porn.
 
5:59 PM
@CatPlusPlus oh yeah, no problem. I like boobies.
 
by the way, reverse of moving to sand box is starring the message
 
@IntermediateHacker Er, robots have no psyche. There's no psychology to be done on them.
 
Reverse of moving to sandbox is eating.
 
lol
 
Spoken like a true cat.
 
6:01 PM
my farewell is getting delayed
 
You're only going to be late 6 months.
 
I added a summary, because I needed it as a recap at start of next installment
 
anyway, I'll just hang around till someone scolds me for not studying.
 
I do that for 8 years now, and nobody ever does.
 
nobody scolds cats
 
6:03 PM
Yeah, cats have it easy.
 
my late pet cat, Leo.
(it was a .NET developer)
 
Where did he arrive late to?
 
he died. 3 years ago
I hate silence.
I don't think u guys are paying respect to the memory of Leo by shutting up?. :D
 
@IntermediateHacker you got us right :D , not sure about @CatPlusPlus
 
6:13 PM
now letme bring some real silence in the room :D , Avada kedavra!! @ Lounge<C++> !!
 
curses, my mom scolded me. gotta study now for the next six damn months in order to secure my future and to develop a career and to get on in life etc.
Bye!
 
@IntermediateHacker good luck
 
@keithlayne thanks. bye now.
 
@IntermediateHacker good luck for exam )
 
6:33 PM
Hello
 
6:47 PM
0
Q: How do I create a double array and use it in C?

pinouchonI have the following code: #define POSITION_T float #define POSITION_COUNT 50 #define HISTORY_COUNT 10 void initHistory(POSITION_T (*history)[]) { for (int i = 0; i < HISTORY_COUNT; i++) { for (int j = 0; i < POSITION_COUNT; j++) { history[i][j] = 0; } } } int main(void...

Sigh, multidimensional C arrays are so annoying.
 
SP6
hi, could some one explain me why my answer <a>http://stackoverflow.com/q/8230988/945783</a> was downvoted. If I am missing something please let me know.
 
Just paste the link without markup and the chat handles it :)
 
I'm guessing the downvote is because that doesn't answer the question.
 
@RMartinhoFernandes C arrays are just misunderstood ;)
 
6:50 PM
The OP is not trying to swap pointers.
Hmm, cake.
 
SP6
@RMartinho from his function name it seems like he is trying to swap using pointers...i guess i should have asked for more clarification before responding
 
"Swap using pointers" is different from "swap the pointers".
 
Why swap using pointers if we can swap using references? Or even better, use std::swap?
 
SP6
i guess...thanks
 
No idea, I didn't write it.
@FredOverflow Upvote David's answer!
 
7:00 PM
I must be dyslectic or something.
 
Either that or dyslexic.
:P
 
Dammnit now I'm confused.
dyslexic is the adjective and dyslectic is the noun?
 
"Dammit".
 
Aarg.
 
7:03 PM
Shut up
 
Ok, now I'm pushing it.
 
I got the last one right at least.
:)
 
You've missed full stop.
 
Meh, that's grammar.
 
Syntax error!
 
7:04 PM
> Black people are aboriginals now?
 
Lol
Is this a photo album?
 
Bill Bryson wrote in "Down Under" about how British sailors once shot at an aboriginal woman for fun. They thought it was hilarious how she climbed up in a tree to hide. And how she plucked bullets out of her body.
@StackedCrooked it's the future to-be-miss-Universe (if I understand this correctly) miss Asunta
 
> Nevertheless, many Europeans had good intentions toward Aboriginal people, despite the fact that they were invading Aboriginal land. Similarly, until Aboriginals were forced into violent action to defend themselves, they often welcomed the first Europeans and treated them well. We can find many examples of friendship and co-operation between the two races in the 19th century.
 
That passage in his book moved me.
 
There's many sides to the story.
 
I think it's not that long ago.
 
hey guys, i gotta question, if i have a vector of objects, how do i add new object to it? push back doesn't work, sice i have to pass an argument, and i don't know what it should be
 
Heck, the Berlin wall fell only in 1989.
vector.push_back(MyClass(arg));
 
7:12 PM
@coolbartek The argument is the object you want to add.
 
Probably.
Ah, then you can do vector.resize(vector.size() + 1);. But there are probably better ways to achieve what you are intending to achieve.
 
0
Q: Git:how to create default brunch with Eclipse?

dmytrodanylykWhen i am creating repository in Git it says "This repository's default branch is empty!" Earlier i have master branch and Source button with SSH, HTTP. So how can i create this default branch, without terminal.

Laugh before I edit it.
 
brunch is good
 
7:18 PM
I don't get the "without terminal" part. How can a programmer be afraid of a command-line?
 
"he is wild and crazy guy!!!"
 
I just paid 3 dollars for an app that allows me to configure launchd jobs using a GUI. I didn't feel like mastering the command line.
 
user457812
Eating with half your mouth numb is really hard
 
dentist?
 
user457812
Yep
 
7:21 PM
@StackedCrooked There's a big difference betweeen "mastering" and "being afraid".
 
@nil Ouch, I've had quite a dental history myself, so yea. I know what that's like.
 
If I provide a solution to your problem with a simple command, why would you reject it?
 
user457812
Dentists hate me.
 
IMHO, having a beard/stubble on a numb chin is kinda cool.
 
user457812
I have a beard, but it hasn't done anything for me. What I have noticed is that the numbing has given me a perpetual asshole grin
 
user457812
7:22 PM
I look like a smug jerk
 
@RMartinhoFernandes Sure. I prefer command line as well. It's just that sometimes I prefer GUIs (like launchd, for example).
@nil There is the risk that's you'll bite your cheek and be unaware of it until the blood starts to spill out of your mouth.
 
user457812
Unlikely, the cheek bit isn't as numb as the rest
 
That would be fun.
 
user457812
Would certainly make a good facebook profile photo though
 
Bloody vampires.
 
7:28 PM
Where?
 
@RMartinhoFernandes Actually it's sort of a phobia to me.
 
Then don't bite yourself.
 
Or don't go to the dentist. I guess...
 
user457812
Serious Sam 3 needs to download faster.
 
user457812
I will not be content until I hear the screams of kamikaze bombers even after I stop playing.
 
7:30 PM
A few weeks ago I finally went to the dentist after 6 six years.
 
It works!
 
The dentist?
 
rand_string(exclamations[]);
@RMartinhoFernandes No, the encoder/decoder.
There were a few mistakes.
 
Hmm, more cake.
4
 
First, the whole array requirement was wrong. Arrays were not needed.
Second, I needed typecasting.
 
7:35 PM
For what?
 
rle_encode = lambda s: ''.join('{1}{0}'.format(len(list(es)), e) for e, es in itertools.groupby(s))
 
> Member function pointers and std::function solve two different problems, to say "use one over the other" ignores that difference. – GMan ↵ 5 mins ago
If only ->* wasn't so damn obscure.
 
7:54 PM
> Your code helps, though it looks like you're aiming for the prize in an obfuscated code contest.
1
Q: error is xmemory - c++0x support missing?

Aseem DuaI have made a winform app where i have used vectors of array[n][n] type using typedef char myarray[9][9]; typedef vector<myarray> array3d; as far as i have read, this feature is provided in c++0x. I am using visual studio 2010 ultimate is the error in xmemory because of this? The ide...

 
are there any EEs in here?
 
What's an EE?
 
sounds like java
 
electrcial engineer
 

« first day (402 days earlier)      last day (4555 days later) »