| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<Hipnotic2> does anyone know why line 10 gives me an Unhandled Exception? http://rafb.net/paste/results/fip3iW47.html <dizzi> is properly initialized? <Hipnotic2> I ***ume it is, I was just following the example from the MSDN <dizzi> http://www.codeproject.com/internet/SocketFileTransfer.asp <dizzi> try this example (i didnt read it) <dizzi> maybe you will find something helpful <dizzi> im not sure how is it with windows <dizzi> but its probably safe option to choose port above 1024 <Hipnotic2> thanks <matja> c++ unrelated question but im sure soneone knows: using just the keyboard, how can one maximize a putty window in windows? <matja> i usually use alt+space to get the application menu, but putty traps it <matja> nm, special putty option for it <randyb> what does it mean to have variable like this: int *&b = a; is b a pointer to a reference? <randyb> or is it a reference to a pointer? <jberg> i think the latter, not sure though <pepp^> it means b i simply another name for a <pepp^> where as a appears to be a pointer to an int <[eloi]> read right-to-left <[eloi]> b is a & to a * to an int <[eloi]> int *p, *&q = p; p = new int; delete q; // q is an alias of p <_m_> randyb: you can't create a pointer to a reference or a reference to a reference. <Genia4> I wonder why they chose & to be a reference when it's already used for getting the address of something <Genia4> I can imagine it being very confusing to people who have hard enough time with pointers <pepp^> Genia4: it is confusing. & can mean several things. <pepp^> & used as alias, used to get the address of a variable, and used in functions for p*** by reference. <Genia4> @ isn't used anywhere in c++ <Genia4> could have been used instead <pepp^> or they could use "#" <Genia4> # can't be used <Genia4> # starts a preprocessor directive <pepp^> ohhh <pepp^> may be they could use "~" <pepp^> or question mark <pepp^> ? <pepp^> the code would appear very cryptic with "?" in it i think <Genia4> question mark is used already <Genia4> a ? b : c <upb> ~ is binary negate isnt it <pepp^> oh forget about it then. They've pretty much used the enitre keys of the keyboard <_m_> pepp^: ~ already has two different meanings. <pepp^> _m_: what are they? <Genia4> @ would be optimal <Genia4> nothing uses @ <_m_> binary negation and destruction. <pepp^> _m_: you are right. <[eloi]> _m_: i call it the shiva operator <_m_> Genia4: I'd be glad if a few symbols are left for reasonable language extensions :) <[eloi]> er, vishnu <[eloi]> damnit, i give up <pepp^> [eloi]: shiva operator? <_m_> (Like, say, for defining your own operators) <[eloi]> vishnu, indian god of destruction <[eloi]> (and binary negation, now, too) <Genia4> @ as your own? <[eloi]> it was a joke, and poorly executed at that <Genia4> what can you possible define @ as? <pepp^> @ is used for email addresses. That ofcourse is not a part of C++. <dehoy> the email operator <pepp^> [eloi]: you should see alpacino's dialogue in glengarry glen ross <[eloi]> heh <_m_> Genia4: I'd rather use it as prefix and/or postfix for naming new operators. The new infix whatever-operator: foo @whatever@ bar <pepp^> He speaks about "patel" last names. and says, Shiva came down to earth and gave them a million dollar and said, sign the deal, he [patel] wouldn't do it. Lord Vishu said the same thing, he wouldn't do it. <Genia4> well, I still don't like the deal with * and & <Genia4> doesn't confuse me, but is really really really wrong <Genia4> hmm, ` could work for custom operators <Genia4> and @ for references <Genia4> a `op` b; <Genia4> wow... I really hate people who can't burn cd's <zeux> hehe <Genia4> my uncle calls me, telling me his son's friend's father burned him this game <Genia4> and after installing, it still asks for cd <pepp^> Genia4: is that it? I hate people who can't figure out wireless stuff <Genia4> a game that requires 256 colors <Genia4> and he managed to not burn it correctly <Genia4> such people should not be allowed a burner :( <Genia4> when the first mp3 discmans appeared, I had tons of friends calling me asking wether they should burn their mp3's as audio cd or data cd <Genia4> or when dsl started getting common, the amount of people who can't read the damn manual written in HEBREW <Genia4> actually, they usually give 2 manuals <Genia4> for exteme cases <Genia4> and I still got calls <Genia4> or people who have no idea what kind of hardware they have and ask me to send them a copy of my driver <Genia4> yeah, really gonna help <Genia4> computers are way too common these days :( <zeux> yawn <upb> thing ithing is, you cant let other ppl know that youre good with computers :P <Genia4> and what I hate most is coming to a person's home to reinstall the OS. I always ask "do you have the lan card's drivers + isp username/p***word" they always immediately respond with yet <Genia4> we install windows, bam, can't find the land card's drivers <Genia4> and even if the drivers are there, no isp username/p***word <Genia4> as if it's so hard to remember :( <upb> have you tried looking gfor the drivers in their pants? <Genia4> or people with damn old computers who think they have the latest pentium 4 <Genia4> I come over, they have a 7 year old celeron <Genia4> really, people have no idea what they are buying these days <Genia4> they know it's a "pentium", and it has 80gb of "memory" <zeux> pah pentiums **** :P <Genia4> really, there should be cops knocking on people's doors <Genia4> if the person has a computer and has no list of hardware in it, they should confescate the computer <Genia4> that simple :( <EdgEy> Genia4, yeah <_m_> fwiw, I don't know what NICs I have in my computers. Why should I even care? <niklaus> priority_queue extracts the greatest element by Q.top , how do i make it the smallest ele <_m_> By using a different comparison predicate. <niklaus> _m_: can you gimme a small example <niklaus> priority_queue < int> Q <niklaus> ; <Genia4> _m_: if they use generic drivers, you really should not know <Genia4> but for specific stuff <niklaus> now i want to extract smallest element when Q.top() is called <Genia4> people don't know if they have amd or intel at times <Genia4> seen that too <Genia4> they know they have a "computer" and a "box" - computer is the monitor and "box" is the "box" :) <Genia4> people still call the monitor a computer around here <Genia4> my mom does :( <_m_> niklaus: std::priority_queue<int, std::vector<int>, std::greater<int> > <_m_> severals machines have the computer inside the monitor, actually. <Genia4> _m_: not common enough for people to actually know such stuff exists <Genia4> I mean, my mom is aware of the box under the desk <Genia4> but has no name for it <patz> the iMac isn't common? :) <dizzi> well ppl should know about computer at least so much like about cars <dizzi> and driving rulez <Genia4> yeah, he's right <Genia4> before getting a license, you have to know a BIT of theory about the internals <niklaus> std::priority_queue<int, std::vector<int>, std::greater<int> > <dizzi> there should be something like driving licences :) <EdgEy> Genia4, no <Genia4> to p*** theory <niklaus> i am getting compilation error <Genia4> why isn't it the same for computers :( <EdgEy> the "box" is the "hard drive" <Genia4> EdgEy: lol <EdgEy> :) <dizzi> anyway i love movies where is hero shooting to monitor, and destroying all datas ;) <Genia4> yeah, a lot of people have 80gb of "memory" around here <Genia4> which I find most annoying <EdgEy> don't unplug that while it's on!!!!! (most people i know talking about USB ports) <dizzi> :) <Genia4> I mean... how dumb can one be :( <Genia4> EdgEy: yeah <ruroni> cause you could easily kill innocent bystastanders with a car... Computers aren't quite as hazardous. <Genia4> also, ipods have a label "do not connect without installing software" <_m_> you likely need #include <functional> <Genia4> tried to explain a friend who is pretty good with computers that it's bull <Genia4> but he wouldn't believe me <EdgEy> argh i hate that <Genia4> idiots should not be allowed electronics :( <dizzi> i remember that some friend told me that when you cancel mem test in POST, you can damage memory :) <EdgEy> my mom is fixated on this Creative MediaSource **** to put mp3's on her zen jukebox <EdgEy> god damn!! drag the file in explorer!!
Return to c++ or Go to some related
logs:
c++ xfce vnc huggies "she wouldn't reciprocate" football great metal covers 5 beginner
|
|