« first day (740 days earlier)      last day (4206 days later) » 

3:00 PM
(might give up on this at some stage)
 
user1182183
@R.MartinhoFernandes yes i know that
 
My birthday is soon.
 
user1182183
prepaid, postpaid..
 
user1182183
I know the difference
 
@GamErix I'm pretty sure it was never changed to reflect my birthday either (which is fine by me -- I generally ignore them as much as I can).
 
3:00 PM
@JerryCoffin If you don't notice them, you don't get older, right?
 
@kbok Congrats?
 
@R.MartinhoFernandes Well, that's the hope. Doesn't seem to be accomplishing much along that line though.
 
user1182183
@JerryCoffin well but it's nice, cool ,whatever, to show Cpp launge cares bout it's users not like other boring rooms XD
 
@R.MartinhoFernandes I must still be 14 then
 
user1182183
@thecoshman possible
 
3:02 PM
@thecoshman It was my birthday recently
 
well, the last did coincide with me taking advantage of an epic sale
@DeadMG Fucking hell, here we go again, always with the birthday talk. We get!
 
@GamErix But it's right there in the advice for noobs: we don't care -- about you, ourselves, or anything.
 
user1182183
anyway mariages are always hitting high view counts, so who here is going to marry any time soon? Will attract many users to the cpp lounge xD
 
@thecoshman Just so you know, I recently advanced a year in age.
 
user1182183
@JerryCoffin controversial points yes but still it's fun.
 
3:04 PM
@kbok Really. So, we use Scientific notation for our programmerness readings then
 
@DeadMG Good lord does this guy not give it a rest with the birthday talk?!
 
I had my birthday last Friday and since then drank a litre of Baileys. A whole friggin' litre.
 
@DeadMG So, you've grown wiser now. Cheers
 
@DeadMG nice, you party by yourself?
 
wiser? how so?
I just kept the bottle by my computer
 
3:05 PM
Birthdays again. Can we have something different? A pregnancy, say?
 
I have a birthday every year!
 
and whenever I'm bored, I pour a glass
 
@DeadMG evidently you're still pouring
 
@DeadMG Wel, can't stop a guy from hoping, right
 
3:05 PM
Who the fuck is Open File Guy??
I missed that
 
@TonyTheLion Never mind. It is unimportant. Look at the OFG scale instead
 
@Collin Naw. The pouring's over, as the bottle is now empty.
 
@TonyTheLion Don't look - it will make you sad:(
 
@DeadMG I thought you didn't drink alcoholic beverages.
room topic changed to Lounge<C++>: Johann Strauss II's birthday. [c++] [c++11] [c++-faq] [ofg]
 
I snorted it
 
3:06 PM
@TonyTheLion He's the reference for the point zero of the programmerness scale (The OFG scale).
 
user1182183
@TonyTheLion some questioon on SO ask how to create a file and name it after command line parameters
 
@DeadMG Fill it with water: instant pourability
 
@DeadMG dude, I am amazed you made it last so long. I find it hard to not drink it in a night
 
@GamErix There you go. Now it mentions someone's birthday. Don't expect anything tomorrow.
 
@DeadMG I didn't know you were a girl...
 
user142019
3:07 PM
@DeadMG ಠ_ಠ
 
@GamErix oh gawd.
 
@thecoshman That's what happened last time. I made an effort to keep it longer this time
 
user1182183
@R.MartinhoFernandes :(
 
> I'm doing some C++ tutorials, and so far I am pretty damn good at it. - The Open File Guy /cc @Tony
 
@DeadMG I don't it for my self any more, I can't be trusted
 
3:07 PM
nor do I
way too expensive
 
@R.MartinhoFernandes Anniversary would be a bit more to the point. I'm absolutely sure he wasn't actually born on this day
 
think I might get my self a bottle of rum tonight...
 
@kbok Pretty damn. I can compile hello world n' shit
 
not had any in the house for a while now
 
3:08 PM
@sehe He was born on the 25th October 1825. If you have any complaints, please direct them at the English language.
 
@Collin An accomplishment
 
@R.MartinhoFernandes I will. Sorry for the inconvenience
 
@TonyTheLion That's old (it has been discussed here more than once). And silly. Someone should register therighttooleverywhere.org.
 
3:09 PM
@Collin I've set up Dev-C++ without the tuts
 
@R.MartinhoFernandes oh. I had never seen it before.
 
@kbok Yeah? Well I can fill a vector without push_back
 
@sehe hmm... a little warning wouldn't have hurt
 
user1182183
@Collin resize, vector[element_index] = x;
 
user142019
std::fill
 
user1182183
3:11 PM
@WTP'-- ok
 
@Collin Real programmers call malloc from assembly code. It's faster.
 
user142019
@kbok It’s not faster. Your compiler > you.
 
user1182183
@kbok who uses malloc, srsly
 
I.. not sure if joke was missed, or just good trolls
 
@WTP'-- you need to restart you sarcasm detecting module
 
user142019
3:12 PM
@kbok Real programmers don’t care about performance until it matters.
 
user1182183
@Collin both
 
Complete failure at understanding a joke
 
@WTP'-- Sarcasm > you.
 
@thecoshman He needs to ask Sheldon Cooper (Phd) tips on detecting sarcasm ;)
 
Anything > you
 
user1182183
3:12 PM
@WTP'-- those in the game industry care, they want to target as many pc's as possible
 
user142019
Real programmers prefer code that is maintainable and slow over code that is unmaintainable and fast.
 
@WTP'-- Performance always matters.
 
user142019
@GamErix real programmers.
 
user1182183
define real programmer
 
Real programmers don't use memes in completely irrelevant contexts
 
user142019
3:14 PM
@GamErix A non-imaginary programmer that is above integral and natural programmers.
 
The term Real Programmer is computer programmers' folklore to describe the archetypical "hardcore" programmer who eschews the modern languages and tools of the day in favour of more direct and efficient solutions – closer to the hardware. The alleged defining features of a "Real Programmer" are extremely subjective, differing with time and place, in the fashion of the "no true Scotsman" fallacy. The archetypal Real Programmer is Mel Kaye of the Royal McBee Computer Corporation who is immortalised in "The Story of Mel", one of the most famous pieces of hacker folklore. As the stor...
 
user1182183
ok so you all guys are shouting real programmers this, real programmers that, real programmers shit, but none of you is a real programmer?
 
@GamErix Hint: it's a joke.
 
real programmers? (╯°□°)╯︵ ┻━┻
 
"Real programmers" is a running gag among programmers.
 
user1182183
3:15 PM
@R.MartinhoFernandes I'm the anti-joke chicken :p
 
It's the equivalent of the "Back in my day we walked up hill both ways!!" joke
 
user1182183
@R.MartinhoFernandes thanks for reminding me that 9gag exists -.-, Now I'll waste 6h of my life again
 
user142019
@Collin Real programmers use the tool they prefer and they don’t give a shit about what others think of it.
 
@GamErix am disappoint
 
3:16 PM
Who cares about "read programmers"?
I'm not readable, btw.
 
@R.MartinhoFernandes 6 edits later
 
Hmmm
inserting a line is the assignment screen takes 100% cpu for one minute
whoever wrote that code should be fired on the spot
 
You still at that crap job?
 
@Borgleader I don't get it
 
3:18 PM
@Borgleader Awww yes.
 
@thecoshman Wait. Do you think I clicked that link? I suppose I just linked you to a twitter status page, right?
 
@thecoshman day9.tv
 
@EtiennedeMartel I can read thanks
 
@R.MartinhoFernandes yup, notice period.
 
3:18 PM
@sehe o_0
 
When are you leaving? End of the month?
 
@kbok oh, lucky you
 
user142019
@EtiennedeMartel Bootstrap. :D
 
@thecoshman His real tag line is "Be a better gamer", but someone made a wallpaper with the flip the tables meme and changed it to "Be a better table flipper"
 
@R.MartinhoFernandes 30/11
 
3:19 PM
Oh. That's still a long time.
 
I really like Day9's manifesto.
 
@Borgleader I see...
 
It's 3 months here in France.
 
@R.MartinhoFernandes months these days
 
3:20 PM
It's four weeks for me. :P
Not that I'm expecting to need that soon.
 
any hoops
I'll catch you later
 
Ah, shit, chat and phone at the same time.
 
@LuchianGrigore Could do what?
 
I said to the guy on the phone "17058 is the only trade which Frances"
 
user142019
@LuchianGrigore LOL macro expansion at runtime.
 
3:22 PM
instead of crashes
 
@R.MartinhoFernandes put - as an argument to a macro
 
Ah.
Yeah, that's cool. I used that to generate otherwise repetitive code to provide typesafe operators for scoped enums.
 
user1182183
 
user1182183
------------------------------Silence mode enabled---------------------------------
 
What was that OFG scale?
 
3:33 PM
@EtiennedeMartel Open File Guy.
 
0
A: Java depth first search infinite loop

NeilJust a wild guess here, but: Node[] children = n.getNeighbours(); getNeighbors doesn't seem to be returning the children of the node as you seem to expect. The effect is that if A has a sibling B, B gets pushed onto the stack. When B gets popped from the stack, it then pushes neighbors of B,...

Am I going crazy? I got downvoted and I do think I have the only right answer
 
@JerryCoffin Yeah, I know about that acronym, but who is he?
@Neil Looks like a SCITE.
 
@EtiennedeMartel Don't have a link handy, but was asking how to create a file, given a name on the command line.
 
i dont think its my getNeighbours method as i have used it elsewhere and got correct results, thanks anyway. — James 6 mins ago
Oh, that kind of guy.
 
3:36 PM
Am I wrong in thinking that "getNeighbours" doesn't return a node's children?
 
@Neil "children"? I thought it was a graph.
 
@Neil What are neighbours, actually? I'd think that neighbours includes parents, siblings and children, in an old-fashioned tree/forest
 
It's weird to speak of a graph node's neighbors as "children".
Wait, wait.
It's a tree.
I'M WRONG IN MY HEAD.
 
Ah that explains it
 
Or maybe not. I'm confused.
 
3:39 PM
I started from the assumption that we were talking about a tree
 
Can you really do DFS on a graph?
Oh, it appears so.
 
@EtiennedeMartel What else?
 
@sehe A tree.
 
@EtiennedeMartel Yes. DFS is an algorithm on graphs. Trees are a special case (a graph where each node has only one incoming edge).
 
It's weird to speak of "depth" with a graph.
 
3:40 PM
Trees are a type of graph I thought
 
They are.
 
Acyclic graphs are trees
 
Why is this wrong?
char changerChar ( char *str ){
strcat( str," Hello" );
char *str2;
strcpy( str2, str );
return str2;
}
 
@GiovanniDiToro Because you did not read the newbie hints.
 
char*, strcat, and strcpy.
 
3:41 PM
That as well.
 
@GiovanniDiToro str2 is a pointer, not a buffer.. you're writing files in your operating system with that
Plus you're returning a character, not a pointer to a character array
 
Plus this is C
 
yes , it is C
 
@Neil Yes -- a tree is a directed acyclic graph (DAG).
 
user142019
Man.
 
3:43 PM
@JerryCoffin because an indirected acyclic graph would be what?
 
I don't think this is a tree.
 
user142019
I’m gonna use a mouse for the first time since eight weeks in a few moments.
 
user142019
@R.MartinhoFernandes Image found.
 
@R.MartinhoFernandes Image not found ?
 
3:44 PM
@R.MartinhoFernandes No that's a 404 error
 
@GiovanniDiToro C is hard. C++ slightly less so, but only if you learn it properly. I recommend that you get a good book, because it seems to me like you're trying to shoot in the dark.
 
user142019
Man.
 
user142019
Mice feel weird after eight weeks of trackpad.
 
In a tree, there's at most one ancestor per node.
 
@R.MartinhoFernandes All trees are DAGs not all DAGs are trees I guess is what you wanted to say?
 
3:45 PM
@Borgleader Yes.
 
@Neil "Indirected"? The opposite of directed would be undirected. That would require that each node have a pointer to its parent, not just parents to children. You can certainly do that, but if you do, it's no longer what's normally called a tree.
@R.MartinhoFernandes No, it's cyclic.
 
@JerryCoffin It's not. It's a DAG.
 
@JerryCoffin It's acyclic
 
OK , last one : char changerChar ( char *str ){
strcat( str," Hello" );
return str;
}
 
:5947248 You want us to edit that answer?
 
3:47 PM
what? what answer?
 
Nevermind, seems you got the wrong link ;)
 
@GiovanniDiToro That doesn't change anything. You're obviously missing the basics.
 
@GiovanniDiToro your return type is wrong
 
@JerryCoffin Then by that definition, an indirected acyclic graph in the opposite direction with no more than one child per node is a directed tree
 
isn't it supposed to be a char?
 
3:48 PM
char*
 
@GiovanniDiToro No
 
I get a char , I appent to it and return it
thats it
 
No you get char*
 
A char is not a char*.
That's strike one.
 
and then somehow expect to return char?
 
3:48 PM
no, you get a char* and append to it
 
@R.MartinhoFernandes oops -- you're right. To be more complete: a tree is a DAG, but a DAG is not necessarily a tree.
 
user142019
No, it should be an std::string, not char*.
 
I know , I've done it with strings , it works , I wanna do it with chars now
 
user142019
Why?
 
cause I can't...
 
3:49 PM
Homework?
 
@Neil If nothing else, please get this straight: "indirect", "indrection", etc., when applied to programming, have a completely separate meaning. It's confusing as hell (and just plain wrong) to use it to mean "undirected".
 
user142019
Time to pirate Windows 8.
 
@GiovanniDiToro You have to understand pointers well to get this
 
also pass the size of your char string to your function, so you don't concat into unknown memory and invoke UB
 
@JerryCoffin My apologies, sir. I wasn't familiar with the terminology
 
3:50 PM
0
A: No instance of function template remove_if matches argument list

Cheers and hth. - AlfYour source code compiles without even a warning with Visual C++ 11.0 (the compiler that ships with Visual Studio 2012). Intellisense uses its own rules and isn't always reliable. That said, your use of isspace is Undefined Behavior for all character sets except original 7-bit ASCII. Which mean...

 
I just don't know why they have to be a pointer and not a different variable
 
you need to learn your C basics properly
 
@GiovanniDiToro Not sure what you mean by "different variable"
 
@GiovanniDiToro Because strings, in C, were pointers to a series of characters that ended with zero (or \0).
 
^ Right link. It's just that the answer sort of escalated. And I wonder whether anyone has experience with C++ level locales in Windows using recent g++?
 
3:51 PM
A pointer is an integer which contains a memory address
It can't be a character because a character holds a value, not a pointer
 
@Neil No need for apologies -- just try to do better. "Indirect", "indirection", etc. refer to, well...indirection -- a pointer or reference to something.
 
a pointer is an integer <--- what?
 
@Neil no, that's wrong
 
a pointer is NOT an integer
 
@Cheersandhth.-Alf Oh gawd, locales.
 
3:52 PM
@Neil Nope
 
@Cheersandhth.-Alf Sigh.. well then try giving a long-winded explanation to someone completely new to pointers
 
@TonyTheLion In most implementations, it's an integer underneath. But a pointer isn't an integer. It's like saying a reference is a pointer.
 
a pointer is a reference to another location , right?
 
a pointer is a variable that holds a memory address
 
I didn't mean a pointer is an integer, but it helps me to think of it that way
 
3:52 PM
@Neil well consider a "far pointer" in MS-DOS. it consisted of two parts internally: a 16-bit segment selector, and a 16-bit offset in that segment
 
@TonyTheLion new int <- pointer, not a variable :P
 
user142019
@TonyTheLion s/variable/object/
 
@Cheersandhth.-Alf And this is going to help explain to someone who doesn't understand pointers how again?
 
I get it , like string[int]
 
@R.MartinhoFernandes you got me :)
 
3:53 PM
He doesn't need to know that.. he just needs to think of it as a value..
 
@Neil dunno. if in your estimate they're unable to grasp the issues, then maybe (1) they've chosen wrong field, or maybe (2) you're wrong about them?
 
@Cheersandhth.-Alf No reason to be caustic. If you're explaining to your wife what pointers are, you don't insist they understand that it is a 16-bit segment selector and a 16-bit offset in that segment
 
Just say it's an arrow.
 
@Neil A pointer contains something that refers to something else. It's not necessarily an integer (e.g., on segmented architectures, it's often two pieces), and it's not necessarily an address either (e.g., Crays used word addressing; a pointer to char contained an address and an offset into a word).
 
And it points to the boxes.
 
3:55 PM
It's a difference between understanding and correctness, and correctness is fantastic if you want to be proper.. but I'm trying to get him to understand.
 
@Neil hey, you used sarcasm, i did not. i enumerated the possibilities, treating your question seriously instead of as the shitty sarcasm that it was
now fuck off please
 
A pointer is the address to some place, char* a; a is variable holding said address of someplace. I could either use it to store the address of another variable (e.g.: char* a; char b; a = &b;) or I could use it to store a C style string. (Feel free to correct anything wrong, ambiguous)
 
@Cheersandhth.-Alf was that necessary?
 
@Borgleader A point is an entity that has a location in space or on a plane, but has no extent.
 
@TonyTheLion maybe not but i've had enough lately
 
3:56 PM
@Cheersandhth.-Alf you should go do something not computer related for a while.
 
nah, he deserved it
 
pffff
 
@Cheersandhth.-Alf I don't mean to offend, but help me explain to him the meaning rather than being uptight about every little definition
 
@TonyTheLion Close as not computer related.
 
Sorry for the loss of time , fellas. I'm learning C/C++ through a lynda.com video and it is not the best of methods I must say.
 
3:57 PM
see, he'
 
@R.MartinhoFernandes what?
 
@R.MartinhoFernandes Haha oops -.-;
 
is at it again
shitbag
 
@TonyTheLion On the early days of SO there was a close reason that was "not programming related".
 
so he thoroughly deserved it
 
3:57 PM
@R.MartinhoFernandes oh lol
 
Come on guys. We don't need a storm out of this.
 
 
plonked
 
Ell
hi guys
 
3:59 PM
@GiovanniDiToro Yes -- you need a good book.
 
@GiovanniDiToro Get a book. Definitely worth it. There's a whole topic on this on SO. Also, make sure that you know what is part of C and what is part of C++. Because when you write code you want to be writing in one of these, not both at the same time.
 

« first day (740 days earlier)      last day (4206 days later) »