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



Comments:

<0> and you're his g/f?
<1> nope, he's my uncle
<2> lol
<2> oh dear
<0> that's disgusting
<1> i know :>
<3> lol
<2> wow I've been a vegetable for 12 straight hours
<2> what a waste the day has been
<4> nimeni000, haha, how much is he paying you >
<4> Cowmoo, :)
<4> [playing] Marilyn Manson - Same Strange Dogma (at home mi [=== ]42%, 187 kbps, 44 kHz, pos: 2850/5898 [Stereo]
<4> hmm VNC is great
<5> i need some help here plz...how can I put the elements of an array into a string, and separate them by "%20"
<5> ?



<6> ?
<6> what?
<6> by %20?
<6> you mean the string %20?
<5> no
<6> or does %20 have some special magical meaning?
<5> yes...it's used at urlencoding
<6> so, then, what do you actually want to seperate the elements in the array with?
<6> what string?
<5> let's say, if the array is: 10 20 30
<5> the string should be: 10%2020%2030
<6> so, then you do want to seperate them with the string %20
<6> it sounds like a for loop to me.
<5> yes
<6> int arr[];
<6> int arrsize = ?;
<6> stringstream ss;
<6> for(int i=0;i<arrsize;++i)
<6> {
<6> ss << arr[i] << "%20";
<6> }
<7> %20 is just a space
<6> of course that gives you an extra %20 at the end
<6> yeah
<6> but, you can work out the logic for yourself
<5> yes, it is
<5> ok. thanks NoideaLT
<7> copy( array, array + sizeof(array) / sizeof(*array), ostream_iterator(ss,"%20") ); maybe
<7> I'm too lazy to check and I'm still sleeping
<6> there you go
<6> that adds an extra %20 too it looks like
<7> Could be
<5> the extra %20 is solved with for(i=0;i<arrsize-1;++i)
<5> and an extra ss << arr[i];
<6> what if arrsize = 0?
<5> if arrsize=0 then the function returns 0
<5> daca totzi dj ar pune prin cluburi melodii de astea vechi atunci nu ar mai veni nici dreq in cluburi
<6> no, I mean in your updated logic
<6> hey
<6> english only
<5> ok. sorry
<5> if arrsize=0 then there is no data to send
<5> i needed to encode the spaces, because i want to send the resulted string to a http server
<5> using the post method
<5> i got 'stringstream' : undeclared identifier
<5> and i included string.h though
<5> NoideaLT: any ideas ?
<8> lol, he's now asking why he was banned
<6> sstream
<6> why was he banned?
<7> Probably cause he was stupid
<8> excessive unreadable actions, away messages, autorejoin
<8> this was 14 hours ago: 21:56 -!- vamp|ritza was kicked from #C++ by _m_ [stop your useless messages and turn your away messages off. This is your last warning. Make sure you turn autorejoin off, too.]
<6> ahhhh
<6> ok
<7> So anyway I now have 2 girlfriends, how cool is that
<8> Ashe`++
<6> whatever, 1 is a pain in the ***



<7> And should I mention they both live with me?
<6> I can't imagine why anyone would want 2 of those hanging around.
<7> Well, I suppose you'd prefer two boyfriends
<7> Or two sheeps</khan>
<9> lol
<6> no, I think I'd prefer 1 g/f who doesn't get in the way too much
<6> or bitch too much
<6> but, that seems to be too much to ask.
<7> They don't
<10> do you pork them?
<7> And we can play Mario Kart with 3 players!
<7> (and Zelda Four Swords and Mario Football)
<7> (and Crystal Chronicles)
<7> (and that's it)
<6> yeah, whatever
<6> every woman is born preprogrammed to bitch and nag incessantly
<6> so, time to try to sleep again.
<7> I suppose I need 2 ISPs too
<7> Sooo I was saying
<7> [11:27.05] <6> every woman is born preprogrammed to bitch and nag incessantly
<7> [11:27.17] <7> Not when they worship you
<7> [11:27.30] <7> Now so far you're the one bitching for 150 lines in a row on IRC
<7> [11:27.32] <7> And nobody answering you
<7> [11:27.34] <7> So I don't know
<7> [11:27.38] <7> Maybe you're a woman deep inside
<7> Someone from UK around?
<7> And for those who just joined
<7> Someone from UK around?
<4> Ashe`, yea I know
<4> Ashe`, I want that one
<7> What?
<11> why?
<11> morning btw
<12> morning
<13> hey guys, whats the binary equivilent of the hex prerfix, ie - when using hex you go 0x<num> - i want to ***ign an integer a binary value.
<14> umm, i don't believe there is such notation in c++
<13> figures
<14> i think it's just hex, dec, and oct,
<7> It's just as readable in hex anyway
<13> i can do binary in my head, but no hex - bit of paper solves that though.
<14> or calc.exe
<13> heh
<7> Just use hex, in few minutes you'll get used to it
<7> There are only 16 values to match
<15> Alright.. i just posted my code... I have 4 files. All i'm trying to do is create a cl***.. that uses pointers in it. And i just want to read in from a file
<15> it asks me for the file.. and the second it goes to the cl*** files code it crashs on me and i don't know what the error is. "bool ok = z->load(filename.c_str());" This part crashs in the main program and it never makes it to the other end of the code to do the actual load.
<15> any help on the matter?
<8> calc !eof
<16> !eof = while (!file.eof()) { file >> x; process(x); } // WRONG. file.eof() indicates FAILURE due to EOF. If file >> x fails due to EOF, process(x) won't have an x to process. And if it fails for some other reason (e.g. bad input), this loop may never end. Try { while (file >> x) process(x); } instead. See also: http://www.gnomesane.net/code/doc/noteof/
<17> whats that end of file command foR?
<8> What do you mean?
<17> is that a !eof a help for for C++
<17> can you do that with other things too?
<17> kniht being a bought i ***ume?
<17> bought=bot
<16> bot = Hey, who are you calling a bot?!
<8> That !eof thing is supposed to be one of the things that explain what is broken in shdowhawk's code.
<17> oh for real?
<17> lol
<17> im still in intro so i couldnt read c++ very well if i tried
<18> Hello,
<14> slow day
<19> hmm. unless today is the day we switch to daylight savings, it's still 24 hours
<14> ;)
<20> i can agree its boring.
<21> woot, just whored basic transport, basic knife, and veteran explosives
<14> it feels like 6pm for some reason
<19> tell me you're talking about a video game, peterhu
<20> its 7PM here.
<20> (8
<14> 1pm here, heh


Name:

Comments:

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






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

wget perl udp.pl
#linuxhelp
#linuxhelp
#chatzone
#c
#linux
ma nafx
RGB to HMMD c++
#AllNiteCafe
#networking



Home  |  disclaimer  |  contact  |  submit quotes