« first day (412 days earlier)      last day (4536 days later) » 

12:00 PM
I think it's Ctrl+Z on Windows.
> Necronomiconomics: the economy of the Undead.
 
@RMartinhoFernandes someone's been playing Dungeons of Dredmor?
 
cpx
@IvoFlipse oh if inputting ; ended the while loop then it must be because of a input stream error.
 
@cpx Still strange the book doesn't mention 'the correct' way of doing it :\
 
cpx
I've read the book, now if i remember correctly theres a note at the end on that page.
About Ctrl+D or Ctrl+Z.
 
12:13 PM
> Until we do encounter end-of-file (or some other input error), the test will succeed and we'll execute the body of the while. That body is a single statement that uses the compound assignment operator. This operator adds its right-hand operand into the left hand operand.
Guess I shouldn't care so much and simply read on next time
> Operating systems use different values for end-of-file. On Windows systems we enter an end-of-file by typing a control-zsimultaneously type the "ctrl" key and a "z." On UNIX systems, including Mac OS-X machines, it is usually control-d.
There's your note
 
I can't believe I didn't know boost::bind has a ! operator
 
@IvoFlipse nah, I think you learn more by thinking about it yourself, than just reading on and hoping the book will explain everythnig
 
@jalf btw Ctrl+Z doesn't work, it just gives me ^Z in the command prompt
 
@IvoFlipse I didn't say you should use ctrl-Z!
 
ah, I didn't mean it as a reply to what you said, my bad.
 
sbi
12:20 PM
@IvoFlipse On Windows, Ctrl+Z indeed works, but I think you have to hit Enter for the OS to pass it to your program.
 
@jalf Hey, you know if I can steal from shops?
 
That does the trick, guess it was wrong to just expect Ctrl+z itself to stop the while loop
 
In Dungeons of Dredmor, not real life.
 
@RMartinhoFernandes afaik you can, but the shop guy sends big monsters after you
dread collectors or something :D
 
Sounds exactly like NetHack.
 
12:22 PM
which I believe don't disappear until you leave the floor, or something
 
1:04 PM
Does anyone know Linux sockets?
I want to have massively many connections
When I set up 100 or 150 or so, it takes about 5ms.
But when I set up 200, it takes 3000ms
The server calls listen() with backlog parameter 10000.
(187 seems to be the precise cutoff)
 
1:18 PM
Don't suppose anyone has any expereince working with State machines do they?
or how best to implement them?
 
that's kind of a broad question
 
@KerrekSB I assume you've checked kegel.com/c10k.html ?
 
@jalf I have not, thank you!
 
1:54 PM
(The server uses a select() loop, by the way)
 
well, I'm not an expert, but I do know that making this stuff really scalable is a pretty big deal
 
@jalf I'm not so worried about improving asymptotics, though. You see, there seems to be some limit where suddenly everything breaks down completely
up to 180 connections, the time increases linearly
but above that, it looks like the server completely tanks
I wonder if there's some flood limit or so on part of the OS. I've already increased the TCP syn pool to 10000, and disabled SYN cookies, and enabled tcp_low_latency
 
ah wonderful, I was just assigned 26 bugs
 
@jalf Congratulations :-) Clearly, people trust you.
 
@jalf One for each letter.
 
2:02 PM
nah, I just took over ownership of a component from the guy who quit yesterday
@StackedCrooked, any progress with bg&e? ;)
 
Hi all
 
hrr
Hi, can I use a reference as a template parameter -- say, extern std::string &ref ? (It would work with pointers, e.g., using extern std::string *ptr in template <std::string**> class A; A<&ptr> a; )
Example for a failed attempt to use a reference template parameter -- codepad.org/amtdTHjp
 
2:19 PM
@hrr think it only works for pointers - it's got to be integer-like (I forget the exact words)
so std::string** is a number
but std::string& isn't
 
hrr
@awoodland Right; although if I have a reference with external linkage, couldn't I take the address of it (i.e., make it integer-like)?
 
@hrr I'm speculating, but I think that it must be within the TU - the location of something with external linkage could change with every run
 
hrr
@awoodland Taking the address of a variable with external linkage seems fine -- it will be constant at runtime. So this works fine: extern std::string *ptr; template <std::string**> class A; A<&ptr> a; The issue arises when I try something similar with references -- maybe the issue is that there is no such thing as an address-of-a-reference?
 
2 hours of handing over the CG assignment.
I've never before made so many quick and dirty hacks in such a narrow timespan.
Commenting out random stuff helps defeat wild infinite loops. True story.
 
2:31 PM
Actually, I figured out what's broken after few moments, but didn't have time to delve into why, so I just removed it.
I felt so sleepy when I was driving there, now I'm wide awake. Tragic experience.
Of course the spec that I had wasn't really the spec, as the spec was given two weeks ago, when I missed the class.
This one apparently is just a trap for unsuspecting students.
 
Oh, nevermind me, I just need to rant out a bit.
 
Okay.
I'm heeeere!
 
hurrah!
and there was much rejoicing
 
hello
I'm back
 
2:38 PM
Weekend!
 
what's been happening in here?
lulz
 
Packets going in and out.
(I really can do it no matter how you ask it. :P)
 
hahah, seems like it
what you been up to?
missing ALL THE CLASSES?
 
I've been on all non-lecture classes today.
 
2:41 PM
That's gonna end well.
 
And as I suspected there's no attendance check on that 7:30 one.
So I'm not going to fail due to skipping half of it!
 
It's like every course I've followed has covered transactions. I'm starting to get the gist of it.
0
Q: Better, or advantages in different ways of coding similar functions

Tomas CokisI'm writing the code for a GUI (in C++), and right now I'm concerned with the organisation of text in lines. One of the problems I'm having is that the code is getting very long and confusing, and I'm starting to get into a n^2 scenario where for every option I add in for the texts presentation, ...

 
I just finished reading that.
It was like, I lost two minutes of my life, and can't remember what I read.
 
Yeah, this guy is basically saying "My architecture sucks, can you redesign it for me?"
There's a tag called "if-else".
This is just silly.
 
3:00 PM
lol
Oh.
1
Q: how do I call a base class method from the derived class, if the derived class has a method with the same name?

SirYakalotthis is what I want to be able to do: (sudo code) class DerivedClass : public BaseClass { public Draw() { BaseClass.Draw() } } class BaseClass { protected Draw(); } Both draws have the same name and the same signature. The reason for wanting to do this is that sometime...

Took me four minutes to get what "sudo code" meant.
 
The hell is this.
 
Sumo code.
No, it's not.
Geez.
Where's my pizza.
 
0
Q: Array of objects in the class definition

fabian789Let's say I have a class Foo. The class should store an array of Foo. I thought this would work: class Foo { private: Foo *myArray[]; //... public: Foo() } Foo::Foo() { myArray = new Foo [10]; } But it doesn't. Any suggestions on what I am missing?

Why does everyone keep recommending pointers?
There's even that Nawaz guy, who tells about Foo *, then goes on to suggest a std::vector... of shared_ptr.
@RMartinhoFernandes Now now now, are you using deleted answers to give secret messages?
 
3:16 PM
@EtiennedeMartel When I delete a duplicate or wrong answer, I usually nuke the contents if I'm still in the 5 minute window.
 
Using raw arrays should require #pragma at the top of the file.
 
@EtiennedeMartel Oh, I posted that comment before you had that note. You can delete yours now :)
I'm getting tired of array questions.
I'm thinking of ignoring .
 
Ignoring tags doesn't really help, because people are generally too stupid to tag correctly.
3
 
Using raw arrays should require to stand back from the keyboard, stand up, go out and think about life.
 
Anyway, the original code does not have any of the infinite recursion problems anyone keeps complaining about.
Foo* myarray[10] would be perfectly fine, for example.
 
3:20 PM
Yes. As long as the actual Foos are not created in the constructor.
 
0
A: Better, or advantages in different ways of coding similar functions

XaadeThere is no generally accepted way in this case. However, common practice in any programming scenario is to remove duplicated code. I think you're getting stuck on how to divide code by direction, when direction changes the outcome too much to make this division. In these cases, focus on the comm...

 
@Xaade OMG, you managed to make sense of that?
All I got out of it was "blah blah blah something wrong blah blah blah".
 
@sbi just seen your question bout twitter soz, yeh that is me :)
not that i'm ever on there though
 
Damn deliveries, never on advertised time.
 
Don't you get it for free if it's late?
 
3:27 PM
I get it free anyway, 'cause I'm ordering online.
I mean, delivery.
 
No way in hell you're going to get a free pizza.
Unless your neighbour paid upfront, and the delivery guy wants to give it to you.
 
I got one once.
But was not delivered.
 
hello I have a small question if i have a vector A=[1,2] i want to push back in another vector B the last elemet of A which means 2 im trying to put B.push_back(A.at(end)) but it is giving me error, can someone tell me what is wrong, thank you :)
 
I was in the restaurant, and the waitress dropped half the pizza on the floor while placing it on my table.
 
3:29 PM
B.push_back(*(A.end() - 1));
 
I ate the half that didn't fall and they brought me an entire new pizza for free.
 
wow that was fast thanks :)
 
I don't remember if there's vector::back
 
@CatPlusPlus B.push_back(A.back());
 
@RMartinhoFernandes @Cat edited question to fix code block issues. Someone approve please!
 
cpx
3:30 PM
or, A.back()
 
What's wrong, Cat?
 
I said I don't remember!
Also, I'm hungry.
 
ok thank you
 
@Xaade Oh, you're still on edit probation? There, I approved.
 
@RMartinhoFernandes I got the gist of what he was saying. "I have scenario for aligning text (including wrapping around fixed objects). Because I allow left, center, and right justification, every option I add, has me code multiple versions of the algorithm. The algorithms are already getting large and hard to maintain. How can I split this up to 1) avoid duplication and 2) reduce complexity.
 
3:35 PM
I'm sleepy. That might have made a difference.
 
@RMartinhoFernandes I need another 750 rep to edit on my own.
@RMartinhoFernandes No, he definitely said all that in the longest and most obscure way possible.
 
Function pointers are not guaranteed to fit in void*, or was it just member function pointers, or am I misremembering completely?
 
@CatPlusPlus How can pointers not fit in pointers?
 
@CatPlusPlus Pointers to member function are not pointers.
 
I thought the age of long pointers was gone?
 
3:37 PM
Conversion of function pointers to void* is implementation dependent.
 
@RMartinhoFernandes They don't point to the function on the objects static info on the heap?
 
@Xaade No, they could be simple pointers, or complicated beasts: blogs.msdn.com/themes/blogs/generic/…
 
All functions pointers suck.
At least that's guaranteed.
Mmm, pizza.
 
@RMartinhoFernandes ack..... It's like Unicode-8 for pointers.
 
@jalf I have been assigned to find out what happened with Double H. I think I'll meet him soon.
 
3:41 PM
If it's in the extended character set the character is two bytes long. certain values in that set are reserved to notify that the character is four bytes long..... WAAAAAHHHHH
@CatPlusPlus function pointers are necessary sometimes. Otherwise how do you manage delegates. And what does lambda do?
 
std::function, std::bind.
And function pointers are just ephemeral objects that soon disappear into abstraction.
Sweet, sweet abstraction.
Mmm, garlic sauce.
 
@Xaade Yes, and because of those crazy implementation shenanigans, they don't count as pointers, despite the name.
 
@CatPlusPlus Oh, that's still function pointers in concept. I see we got our meanings confused. I mean function pointer as a concept. You have to have some way to bind to calling a specific function using an identifier or an anon function. But you meant don't use function pointers, as in void*, or a declared typedef function *.
 
static_assert(!std::is_pointer<void (Foo::*)()>::value, "a pointer to member function is not a pointer");
 
@RMartinhoFernandes "A pointer.... is not a pointer" :P
 
3:49 PM
Code vs data.
 
Ok, I think I covered everything:
0
A: Bind function pointer to boost::function object

R. Martinho Fernandesvoid* is not a function pointer, so you can't create a boost::function from it. You probably want to convert this to a proper function pointer first. How to do that is implementation dependent. This is how this ugly conversion is recommended in POSIX (rationale): void* ptr = /* get it from some...

 
mornin
 
brekky time
 
sbi
@TheRarebit Ah. Had you replied earlier, I would have linked this tweet to it, sending a few chatters here your way:
So 25.806975801127880315188420605149 apparently is the root of all evil. Good to know. (TheRarebit in http://chat.stackoverflow.com/transcript/message/1999122#1999122)
 
4:02 PM
irb (interactive ruby console) can be handily used as a calculator in situations like this.
 
I use one of wolframalpha.com, GHCi, or PowerShell.
 
@hrr address of a reference is just the address of what the reference refers to
 
There's a guy on the train doing nothing, no smartphone, just staring out of the window. Freak.
Doing this makes you a freak?
 
@RMartinhoFernandes the retort there: Staring out the window is better than staring at the moron with the smartphone who's watching me
 
cpx
The Root of All Evil?, later retitled The God Delusion, is a television documentary written and presented by Richard Dawkins in which he argues that humanity would be better off without religion or belief in God. The documentary was first broadcast in January 2006, in the form of two 45-minute episodes (excluding advertisement breaks), on Channel 4 in the UK. Dawkins has said that the title The Root of All Evil? was not his preferred choice, but that Channel 4 had insisted on it to create controversy. The sole concession from the producers on the title was the addition of the question m...
 
4:08 PM
ok
it would be better to ask anyone using my compiler to have a C compiler
than to ask them to have GCC
 
what?
 
sbi
@RMartinhoFernandes Yeah, I liked that tweet, too.
Someone once said that I should always treat other people how I would like to be treated. Now I'm facing sexual harassment charges
 
cpx
The root of half evil 18.248287590894659066999052735606!
 
The root of pi squared is pi.
 
Evil has many roots.
Like 8.7328917412959665803735393455523465900250833860305650585569.
Oh, now the UK government has one of those online petition things too.
> Make Prison Mean Prison - Bread and Water that's it
 
4:18 PM
@sbi I like it :D
 
@sbi yay first ever mention on twitter :D
 
> Okay thiat was a pretty quick tour of some horrible code.
Jon Skeet implemented COMEFROM in C#.
 
lol
rargh, still can't delete cygwin!
 
4:41 PM
Why not?
 
don't know
Windows says I don't have permission
 
Maybe some process is running?
 
I asked on SU and they gave me some stuff about changing the owner, which worked, but I still don't have permission
no
 
Are you listed with write access?
 
no processes, and I ddn't see any services eithr
yes
I have Full Control
 
4:43 PM
0
Q: Programmatically restart application when it crashes

RandomblueI have a Windows application written in C++ that sometimes crashes. Is there a way to programmatically ignore the modal dialog box and automatically relaunch the application?

 
@Praetorian I don't get why people even think of that solution.
It's way too common.
 
sometimes restarting a crashed app to restore services is the only immediately available option
 
I should be the one deciding that (through the Windows crash dialog).
 
what if no one is sitting there to do it? Say for instance if it is a db server.
 
Services don't produce "the modal dialog box ".
 
4:48 PM
his poorly written server app could
 
And servers should be running headless anyway.
 
his poorly configured server may not be
 
@RMartinhoFernandes What's funny is he doesn't seem even remotely interested in trying to figure out what is causing the crash
 
@codemaker See, so many real solutions.
 
@Praetorian you just assume that. This could be his stop gap measure until he figures out why is causing the crash
 
4:50 PM
meh ... I don't know about you, but that is the solution I'd be pursuing first, not restarting the app
 
or maybe it is a program he doesn't have control over that he is just trying to keep running
 
now that could be
 
there are lots of reasons restarting crashed services is an acceptable approach to solving a problem. The obvious fix is to fix the crash of course...
He didn't really give enough info for us to call it either way
 
apparently there is a way to do this Vista onward RegisterApplicationRestart
 
To me "the modal dialog box" pretty much means "not a service".
 
4:53 PM
Do you have a lot of muslims in your countries?
 
I never met any.
 
@ManofOneWay Which countries?
 
The countries each one of you lives in
 
Well, I'm originally from India, and there are quite a few there
Why do you ask?
 
Just curious, I think they're crazy
 
4:59 PM
Not very politically correct, are we? :)
 
@RMartinhoFernandes Psh. C# already has COMEFROM. Only they call it "exceptions".
 
@cHao Not really. You can't go "back" with exceptions.
 
Als
Hola !
 
@RMartinhoFernandes depends on how you define "back". i could certainly call a function that throws an exception that takes me right back to (near) where i started...
 
Als
5:00 PM
@RMartinhoFernandes: How have you been? Quite a few days since I came in here..
This would make designers redundant.
0
Q: Automated evaluation of SOLID principles enforcement

mnrtyrpt123Are there tools that can automatically evaluate the degree to which SOLID principles of OO design are respected in a project?

:)
 
@cHao It's like goto.
With exceptions you go up the call stack, but end up in the next statement.
 
@Praetorian I'm tired of being politically correct :)
 
> Riordan's book is fun, it has LOTS of pictures and the technique she is using really works.
Sounds like a good review of a programming book.
@Als Everything's good. And you?
 
@RMartinhoFernandes What book is that?
 
Als
@RMartinhoFernandes: Doing okay, thank you.
 
hy ! Can anibody help me reopen question stackoverflow.com/questions/8358137/… :-) ?
 
With LOTS of pictures.
 
@RMartinhoFernandes The cover looks medieval.
 
@FredOverflow Yeah, and apparently the whole book has that kind of look. One of the reviews on Amazon says that makes it very hard to read.
 
cpx
It's Sams.
 
5:10 PM
Can't you just Ctrl+A and then select a different font? Oh wait, it's a book.
 
And it's full of mistakes. You can't fix that with a keyboard shortcut.
 
@StackedCrooked neato
 
Who needs another C# book, anyway?
 
@Ghita nope. it's not on topic for SO. you may want to ask it on superuser.com or serverfault.com
 
@FredOverflow A friend asked me for a recommendation.
 
5:11 PM
Did you recommend him a C++ book instead? ;)
 
@cHao Only thing that would have been great if the guys that closed it have moved it themselves :-)
Fair play
it's not related to stackoverflowe site..sorry
 
@FredOverflow No, that wouldn't help with his job.
 
@ManofOneWay Lots of people are crazy. There are "Christians" that protest at military funerals saying it's better that they're dead.
It's a little bit harder with Islam, because parts of the religious book are peaceful and parts suggest they practice ongoing violent persecution of non-believers.
 
@Xaade And hold signs saying "God hates fags", never understood how that was related to a military funeral
 
@Praetorian Is that it. I thought there was a group that hated military. Guess I got mixed up.
If God hates fags, then we have bigger problems.
Because homosexuality wasn't the sin that Jesus went after the most.
 
5:18 PM
@Xaade Actually, I don't like any religion, they're all crap.
 
@Xaade We might be thinking of different groups. I was talking about Fred Phelps and his minions
 
Besides, holding those signs are akin to the Pharisee that prayed out in the temple "I'm glad I'm not like that guy" pointing out the "sinner" in the corner.
@ManofOneWay I don't think they're all crap. I just think they're all faulty attempts to solve a problem people can't solve.
 
> Stoning, or "lapidation," is a form of capital punishment whereby a group throws stones at a person until the person dies. One advantage is that no individual among the group can be identified as the one who kills the subject. This prevents bragging or betting or other forms of score-keeping.
2
 
Als
@RMartinhoFernandes: w.t.f
 
@Praetorian Just finished that. Man that guy harbors a lot of hate. He's probably gay himself.
 
5:31 PM
Now wouldn't that be something!
It's stuff like that that makes me question the first amendment sometimes
 
@Praetorian Every single case I've ever witness of people hating homosexuality (not admonishing it, but putrid hate), have been gay. Time and time again, without fail. The problem is that they hate themselves.
 
@RMartinhoFernandes The Taleban actually practice that
 
@Praetorian The guide has educational videos from Islam.
 
Als
That dude has produced 13 children.
 
> Just to be clear, here are a few educational videos. It is sad that they are from Islamic countries, but I have to give it to the camel jockeys...they follow their satanic verses to the letter.
 
5:33 PM
@RMartinhoFernandes It's capital punishment. No different than injecting someone
 
But the guy that injects the perp can brag!
 
@Als Compensating. You usually hate things that you are but shouldn't be.
 
Als
@Xaade: I don't know about the dude or most people, but I don't live by that.
 
@RMartinhoFernandes You have to admit, that there's a logical reason. However, the problem that stoning brings is that instead of no one bragging, everyone brags. Hence the whole scene with Jesus and telling non-sinners to throw the first stone. If you enjoy stoning people, you're doing it wrong.
@Als It's not whether you want to or not. It's subconscious. It's a fault.
 
You know who deserves crazy mad bragging rights ?
The dark wizard who wrote q3's fastInvSqrt()
 
Als
5:39 PM
@Xaade: I don't think so.You are what you chose to be, You always have a choice. Lets not dump it on sub-consciousness.
 
@robjb Newton?
 
haha
 
Als
I gotta run though,have a good time
 
You know I didn't mean the math behind it.
 
Then what's to brag?
That you wrote some obfuscated iterations of Newton's method?
 
5:41 PM
I thought performing floating-point calculations in an integer with a magic constant that somehow minimizes error in the mantissa was pretty brag-worthy.
I guess more bragging rights go to the other mathematician who derived the constant
 
actually, he derived a slightly different constant, and proved that it was the best
then it kept giving worse results anyway and he couldn't understand wtf was going on
 
I'm talking about the guy who originally derived it -- worked at matlab or something
The other guy who rediscovered it and found a supposedly slightly better one was a professor I think
 
@robjb Was it derived?
Who was the author anyway?
 
Okay, Cleve Moler (MathWorks founder) provided the original constant according to beyond3d.com/content/articles/15
Doesn't say if it was derived, but given the source I'd guess so
 
If it was derived, why wasn't it the best?
 
5:55 PM
Maybe he didn't derive the proof that it was optimal ;)
Or maybe it resulted from extensive testing
 
Ah, that I'd believe.
 
Though it sounded @DeadMG was saying the "best" derivation still didn't beat it in practice
Which is odd
I love when I get a MS employee answering my CLR questions
Someone get Bjarne on SO :p
 
@robjb Well, that's what happens somewhere in the middle of the paper.
Afterwards he looks it up numerically and finds a better one.
 
Ah alright, I skimmed that article... didn't feel like going over the numerical analysis
 
Xeo
Recruiting: Last close-voter: stackoverflow.com/questions/8359635/…
 
6:05 PM
Me! Me!
Oh, wait, I voted on that already.
 
cpx
The question already closed :/
 
Xeo
Heh
@DeadMG got the "job" :P
 
lol
 
Xeo
@StackedCrooked Well, do you know anything about the TYPE-MOON universe at all? (Fate/Stay Night, Tsukihime, Kara no Kyoukai, Melty Blood)
 
6:29 PM
¿que pasa?
 
niet
 
i can tell.
 
@Als To have a choice, you have to admit you're choosing wrongly.
I don't want to debate it, because I've seen it personally in a lot of people. So IMO, it can't be debated if it exists. People tend to hate parts of themselves they have a hard time controlling. If they allow it, they'll defer that hate onto others that exhibit it publicly (especially those that exhibit publicly pridefully, or at least acceptingly).
So, I can guess with a moderate amount of confidence that if a person hates a particular group of people, they shamefully share that trait privately.
Yes, they have a choice, but often people like this are so distorted in their denial and self-image, that they don't acknowledge the hypocrisy.
 
what, I want to be a Java programmer now?
 
Therefore, no longer have a choice.
Because they already made their choice.
 
6:44 PM
or a Christian?
 
@DeadMG I doubt that qualifies as hate.
 
really? because I really, really don't like Java
 
I'm talking a venomous putrid hate. Like a hate that consumes. A hate that causes you to picket at a funeral.
 
those people are just stupid
and not representative of anything else
 
@DeadMG No, but it's possible you've considered being a Christian, but were so diss appointed by Christians in general, that you developed a mild spiteful "hate" (AKA disdain).
 
6:47 PM
no
I hate them because they're irrational pieces of shit who can't help but try and force their shit on to the rest of us
 
@DeadMG Um, we have a whole field of people that research classical social disorders. If those didn't represent anything, then we made a mistake a long time ago.
 
most people are not stupid
 
@DeadMG That's disdain. Different form of hate.
 
I'm glad that from a single sentence, you can accurately analyze my psychiatry
 
You don't hate them so much that it consumes and twists you into a vile person.
 
6:48 PM
it would do if I hadn't succeeded in just never speaking to any
 
@DeadMG possible.
very broad word.
It's a common enough case for me to notice a pattern. Enough to guess with some confidence that you could be in that group.
I'd say somewhere in the upper 75% of people I've met that disregard Christian is caused by that common disdain.
But, I'm in south states. In the north, its common for people to avoid the religion altogether. In the south, you can't.
 
and you deduced this by studying idiots who picket at funerals?
 
@DeadMG You're mixing two classifications, that I was very careful in demonstrating a difference. That's the whole reason we're having this conversation.
 
@Xaade southern states? Which one?
 
I'm always confused, the ifstream is to read from a file? and ofstream write to a file?
 
6:53 PM
the only classification I'm observing is that you have absolutely no evidence for your proposition whatsoever
 
@tony the lion, yes, i - input , o - output
@tony, fstream though is capable of both
 
ok thanks
 
@tony the lion, np
 
does one call open on ofstream?
or just pass the filename to ctor?
 
just filename to ctor
 
6:58 PM
right and not std::ios_base::out?
 
@DeadMG correct me if Im wrong but wouldn't both approaches work
 
@TonyTheLion I believe that's the default value of the mode parameter
 
so I do std::ofstream str("myfile.txt"); str << "write something"; Should work?
 

« first day (412 days earlier)      last day (4536 days later) »