@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> atoi doesn't work for me, tried...
<1> Int32 i = Int32::Parse( some_string );
<2> max4ever maybe you should learn the language 1st
<1> where some_string is a String^
<0> well i am, at school, and a little myself, but i was using dev-cpp till now
<0> what does this L means ? this->Name = L"Form1";
<3> wide-character string.
<3> (Like Unicode, for example.)
<3> Gah... it looks *exactly* like a Seattle day outside.
<3> Except, this isn't Seattle.
<4> http://video.google.com/videoplay?docid=5430343841227974645
<3> Ah... beer o'clock.
<5> blah blah blah blah blah
<5> did you see that link from me earlie rvawjr?
<5> http://stromata.typepad.com/stromata_blog/2006/01/life_imitates_s.html



<2> Noidea the revoultion appears to be just around the corner <sigh>
<2> both ideas really really really ****
<4> 1mps = 10^6
<4> 15 mps = ?
<4> mbps*
<5> m is milli
<5> M is mega
<4> M
<4> M
<5> http://www.foxnews.com/story/0,2933,183861,00.html
<5> This New Tax Cracks Me Up
<5> that one on the page.
<4> how many bits in 15 Mbps
<2> around 15,000,000
<6> can somebody help me with an XML question? no body's in #xml.
<6> OK, i'll just ask anyway
<6> How does the encoding attribute in the XML declaration element help the parser? If the parser has read and understood so far, then doesn't it mean that it already knows the encoding used in the file?
<2> iirc the encoding line is always in single byte text
<3> http://www.w3.org/TR/REC-xml/
<3> That addresses the reasoning.
<3> Specifically http://www.w3.org/TR/REC-xml/#sec-guessing
<7> Anon3720, as long as it hasn't encountered the encoding attribute, the XML parser must ***ume that the document is in the default encoding
<6> thanks for the link... and as I guessed, it seems that the encoding attribute serves little purpose
<6> because as it seems, just to read and parse the encoding attribute, you have to already know the encoding used.
<2> are you really that stupid?
<2> or can you just not read
<6> vawjrwrk: read what you said or the XML specificatiosn in the link?
<2> either, they were both quite clear
<6> "the encoding line is always in single byte text" -> if I understand correctly, that is wrong.
<2> ok, so ****ing what?
<6> nothing... cool...
<2> but I'd still wager that the default encoding is single byte text
<6> the question I have is, if the XML declaration is encoded using whatever encodign scheme that is used for the rest of the file, what is the purpose of having the encoding attribute (other than making it obvious for a person reading the file)?
<6> (i.e. a person viewing it in a text editor, as opposed to a program parsing it)
<2> the point is it doesn't have to be "the same as the rest of the file"
<2> I thought that would have been obvious
<6> I think it does
<2> feel free
<6> since the specification doesn't make it clear that a specific encoding should be used for the declaration
<3> Section F.1 spells out exactly the scenario where it's necessary.
<3> Scenarios, rather.
<3> And the default encoding isn't single-byte.
<3> "...the XML encoding declaration allows reasonably reliable in-band labeling of character encodings, even when external sources of information at the operating-system or transport-protocol level are unreliable. Character encodings such as UTF-7 that make overloaded usage of ASCII-valued bytes may fail to be reliably detected."
<6> that... and also "Also, it is possible that new character encodings will be invented that will make it necessary to use the encoding declaration to determine the encoding, in cases where this is not required at present."
<6> thanks for the information Solamente
<5> http://www.reason.com/links/links013006.shtml
<8> how do you iterate through a list of items in a map and erase an entry if a condition is met?
<8> seems when i delete an entry the iterator variable is messed up
<2> Noidea yeah, read about BB&T earlier
<2> vidkid yup
<2> why do you want to iterate through the list ?
<8> because i want to remove entries in the map if a condition is met
<8> so i need to iterate through the map (all entries)
<2> no
<2> you need to get a book on the C++ Standard Library
<2> but look up remove_if in whatever docs you have on map
<2> maybe erase also
<8> ok thanks
<4> who's familiar with the estimation code
<4> of the maximal effeciency of a line with flux control



<9> toast flux compasitor?
<1> 1.21 gigawatts?
<10> wow.. building boost with bjam + vc80, lots of stupid deprecation warnings
<1> yup
<10> wonder why they didn't disable that warning (boost)
<1> shouldn't be too hard to put it in one of the config files there, but yeah I do think they should define it by default
<10> yeah.. oh well
<11> Wow, godzilla monsters, tsunami, and a conspiracy to destroy the world
<11> You guys don't know what you're missing
<11> And where the hell is khan, anyway
<11> Bet he took that new job
<1> where's all of that going down?
<11> Surface :D
<1> on the surface?
<1> i haven't been up there for a few weeks
<11> :P
<11> This better get renewed, because they can't possibly deal with all this in 22 minutes
<11> Which is odd, because I was wondering how they'd stretch godzilla out over a single season
<11> What the hell
<11> I want more, now
<12> hello
<12> In C++ usually there is .H file where Cl*** is define and we put method prototype in .H file while the method code is in .cpp file ...
<3> Unless it's a template cl***, in which case everything is in the .h file
<12> in managed C++ I just notice that automtic generated cl*** file put method code in .H leaving not much in the cpp file
<3> Or you just want to put the implementation in the cl*** definition.
<3> KoKoMoKo: That's really not much different than native C++.
<12> ok ...
<3> There are reasons to put code in a .cpp, but there's no hard-and-fast rule saying you must.
<3> Likewise with Managed C++. You can separate the implementation there, too.
<12> which means that in native c++ i can just put all codes in .H file
<3> You can, but sometimes you don't want to do that.
<3> It just depends.
<12> i see.. so it is just a matter of different style
<3> Not necessarily.
<12> ok
<12> what if I just throw away the cpp file...
<12> just using the .H file
<3> There are technical reasons to go either way.
<12> I would like to know the technical reason
<3> Reasons.
<3> More than one.
<3> I can give you one example.
<12> fire away
<3> Sometimes you can declare your cl*** methods with a minimum number of header dependencies.
<3> But the implementation requires more headers, etc.
<3> It's a good idea to minimize the number of dependencies in your headers.
<3> Also, sometimes you have static members of a cl*** that need to be implemented in a .cpp
<3> And sometimes, you just don't want to have all that code floating around in a header file.
<3> That way you can change the implementation without having to deliver a new header.
<3> But it depends.
<3> Some people who aren't too sharp about C++ will try to say that putting the implementation in the header file will cause code bloat.
<12> i get it
<3> Unless you're using a poor compiler or you have some goofy compiler settings on, that's almost never the case.
<3> The compiler's optimizer will decide what to inline and what not to.
<12> hmm... before this I think that method code in .H files is inline .. thanks for clearing that up
<12> the other thing that confuse me is usage of namespace
<3> Herb Sutter wrote an article about how difficult it is to convince your optimizer to inline or not inline.
<3> Even the inline keyword won't guarantee an inlined method.
<12> let say i put namespace MyNamespace in .H do i have to put it in my .cpp file ...
<3> Either than, or put a using at the top.
<3> You're better off putting the implementation in a namespace, though, I think.
<3> So if your header is...
<3> namespace foo { cl*** Bar { }; }
<3> Scratch that...
<3> namespace foo { cl*** Bar { public: Bar(); }; }
<3> Your .cpp might read...
<3> namespace foo { Bar::Bar() { } }
<3> I find that's easier to keep up with.
<12> ok ... so i put namespace on both .H and .CPP file ... that seems to fix my problem just now
<12> thanks again, I really need to do some more research about this namespace thing... must be something new because 5 year ago no one teach me this
<12> :D
<12> Thanks Solamente
<13> Hi, I have a problem with some abstract cl***. I want to return a copy of an abstract cl*** (note here that I'll only return copy of derivate f this cl***)
<13> if someone have a sec to look at : http://www.noidea128.org/sourcefiles/15919.html


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

undernet.xs4all.nl.6667
#gentoo
#slice
#linux
#chatzone
gudmarani porn
> which newspaper did mahatma ghandhi edit during his stay in south africa?
#AllNiteCafe
mic alsamixer none
The system load is dangerously high



Home  |  disclaimer  |  contact  |  submit quotes