@# 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:

<matamatix> Nice one m8
<matamatix> i didnt realise its case sensitive like linux
<matamatix> appreciated
<peterhu> argh, broke a drill bit
<peterhu> and whomever designed the gate under my deck needs to be shot
<peterhu> the only way you can attach a latch is on the lattice work, and it has to bolt into lattice
<peterhu> so you basically have to use the puniest of screws so it won't split open the lattice, or you split it a little and hope it won't tear off eventually
<frob> heh. I can imagine a breeze ripping the lattice off.
<peterhu> the previous latch held for some time, until the weight of the gate misaligned the bolt (and it completely rusted through)
<peterhu> we'll see how it does
<arnoxx> hello
<arnoxx> Tantric Wesley, Addison - Accelerated C++ pdf.rar is this Red Book from list?
<ZiRa> anyone :)?
<crasher-> rm -rf ZiRa
<crasher-> /ban ZiRa
<crasher-> BUY THE BOOK
<ZiRa> allready ordered
<ZiRa> delivery few days so i wanna chk pdf before i recive it
<crasher-> And we're all retards, right ?
<ZiRa> :S ?
<ZiRa> something is wrong with you?
<Buoy> fdasf
<Buoy> don't kick me
<crasher-> Why not =)
<holospoof> after including windows.h and winuser.h I still get undefined error for TrackMouseEvent
<Buoy> holospoof: have you defined _WIN32_WINNT?
<holospoof> no what do i have to set it to
<crasher-> < 0x0400 iirc.
<holospoof> lol i would give anything to see an entire computerlab struck by a virus that goes Beep(rand(), 1)
<ZiRa> lol
<ZiRa> visual basic can be decompiled , what about c++ ? cant?
<vawjr> can't
<holospoof> why cant?
<vawjr> there's nothing in the executable to hint at what the source is
<vawjr> and I've never seen a decompiled visual basic source, so I have no idea of how well it's done
<holospoof> you can decompile any executable into asm though, right?
<P-Brasil> i got a question
<vawjr> holobyted asm is simply human readable flavor of the actual instructions the computer is executing
<P-Brasil> I have a sum of numbers. Why it returns me 0255 , instead of only 255 ? Anyone knows a reason ?
<vawjr> P-Brasil you've been around long enough to have read the topic
<vawjr> how do you know it's returning you 0255 ?
<P-Brasil> cout
<vawjr> and what does your output statement look like?
<P-Brasil> can i post only this part of the code ? Because it is too big
<vawjr> sure
<P-Brasil> http://www.noidea128.org/sourcefiles/16006.html
<P-Brasil> I added a comment. Try with the sequence "123456789" , because this result i have right(in the notepad) to test my program.,
<NoideaLT> what do std::cout; and std::cin; do?
<NoideaLT> why are you #including conio?
<vawjr> and what is the program SUPPOSED to do?
<P-Brasil> conio,because i am having problems with getchar()
<NoideaLT> getchar is in stdio
<P-Brasil> in U.S. , there's a social security number right ?
<NoideaLT> yes
<P-Brasil> here,we have something like this called CPF...composed by 9 numbers,and after then two digits to verify if the sequence is valid, understood?
<NoideaLT> ok
<vawjr> check digits
<P-Brasil> Yeah
<P-Brasil> check digits,nice way to resume.
<P-Brasil> But can u see the problem ? The result of the sum is allright , but i can't understand why it returns me 0255.
<P-Brasil> Instead of 255 only.
<vawjr> no, I have NO idea what it's doing
<NoideaLT> man I'm bored
<NoideaLT> I feel very tired too
<vawjr> maybe d10 is 0
<P-Brasil> From line 15 to 25 i extract the numbers from the variable cpf,as u can see right
<vawjr> P-Brasil did you see my comment
<vawjr> you output d10 then soma2
<vawjr> on the same line
<P-Brasil> lemme see
<vawjr> with no spaces
<P-Brasil> From 30 to 34 i define what is d10
<vawjr> who cares
<vawjr> you OUTPUT it, then you output your sum
<vawjr> if d10 is 0 and the sum is 255 then you will see 0255
<P-Brasil> ohhh i seeee
<P-Brasil> now i see
<P-Brasil> vawjr
<P-Brasil> for "remembering" reasons,i decided to do not use loops,arrays,etc...
<P-Brasil> thats why the code looks ugly
<vawjr> your calculation of the digits is silly
<P-Brasil> yeah...no parenthesis,nothing
<P-Brasil> i will make things nice l8r...there's something i learned
<P-Brasil> first, put the engine working...l8r , you make optional adjusts :)
<vawjr> most peole do the divide 1st, then the modulus
<vawjr> because then all the modulus are the same..... 10
<P-Brasil> Well...the way i did those operations , is the way i think when solving a equation , a derivate...i prefer to go directly to the point. I know what result i will need,then i solve only one thing and get my result.
<NoideaLT> parens won't matter
<P-Brasil> I am sure that in the future i will see that this idea is wrong. But , for now is working.
<NoideaLT> order of operations doesn't matter in that situation
<NoideaLT> anyway, shower time.
<P-Brasil> well...still getting the zero.
<NoideaLT> ugh
<NoideaLT> change your cout soma2 line to
<NoideaLT> cout << endl << endl << endl << "\"" << soma2 << "\"" << endl << endl << endl;
<NoideaLT> there
<NoideaLT> no mistaking that.
<NoideaLT> actually add
<NoideaLT> cout << endl << endl << endl << "soma2 = \"" << soma2 << "\"" << endl << endl << endl;
<NoideaLT> there
<P-Brasil> Noide
<P-Brasil> the cout << soma2 was only to see the result
<P-Brasil> it isn't needed :)
<P-Brasil> thx for the attention.
<NoideaLT> what are you talking about then?
<NoideaLT> if you're still getting the 0
<NoideaLT> where are yous eeing it?
<P-Brasil> i found that the problem is in d11
<NoideaLT> you only print it 1 place.
<P-Brasil> i will poste the whole mess :P
<P-Brasil> *post
<NoideaLT> ugh, go ahead, I'm going to shower and get dinner.
<NoideaLT> later.
<P-Brasil> http://www.noidea128.org/sourcefiles/16007.html
<P-Brasil> the whole mess is there
<P-Brasil> hahahahahahahha
<P-Brasil> hahahaha
<P-Brasil> solved...
<P-Brasil> man i'm so dumb
<P-Brasil> i'm retard
<P-Brasil> really
<P-Brasil> i was using the same modulus result at soma2
<P-Brasil> and vawjr...maybe u can help me in a question
<P-Brasil> how about if the number starts with zero ? it will not store the zero. could u give me a clue about what i can do to byp*** this ?
<vawjr> P-Brasil what you have is _so_ far from how i'd solve it, I'm having difficulty figuring out what you want to do
<vawjr> and I don't know what you mean "will not store the 0"
<MrCloak> Vawjr you know anything about network programming. If you or anyone does I'd really like a few minutes to discuss some stuff with someone about it.
<MrCloak> btw, the C++ Express with the vc8 *thumbs up on that one* thanks a lot.
<P-Brasil> Well vawjr
<P-Brasil> just suppose i have one int variable , and the number 012345
<P-Brasil> No,sorry
<P-Brasil> Lemme make the question again,i am sorry.
<P-Brasil> int number; cin >> number; [you typed the number 012345]
<P-Brasil> you know that the "0",won't be stored,it will store only 12345
<MrCloak> So store it in a string and pick it apart if you want the 0, right?
<vawjr> what is "number"
<vawjr> and why do you care if it's "stored" ?
<vawjr> a larger problem is that if you type 012345 that ti will think it is octal
<Klindel> anyone able to suggest an idea how to handle linear permutations? i.e. {1,2} {3, 4, 5} vs {1 , 2, 3} {4, 5}? Can't seem to solve this one
<vawjr> no clue what you're referring to
<P-Brasil> vawjr
<matamatix> l8rs people
<P-Brasil> why do i care ? because as u saw the CPF code, i will use the number l8r
<vawjr> so?
<vawjr> it's a NUMBER
<vawjr> leading 0s are irrelevant
<Klindel> hard to describe Vawjr. I recenve N 2-d points. And I have to put them into K groups. However the groups have to be sequential, no randomness, i.e. {1,2} {3, 4, 5} vs {1 , 2, 3} {4, 5} where 1 - 5 are a set of points in 2d space. I'm not sure how to code something that can test all linear permutations
<P-Brasil> yeah,looking by this point its right.


Name:

Comments:

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






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

MX records are in the format of PRI:ADDRESS
#MissKitten
slick_chic
charyston
#chatzone
#AllNiteCafe
#london
#linux
#AllNiteCafe
Fabiola bullz



Home  |  disclaimer  |  contact  |  submit quotes