@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> haha
<0> 30 / Cant tell due to fat rolls / parents basement
<0> </stereotyping>
<1> people still say "asl"?
<1> fascinating
<2> azr|el, I thought the same
<3> anyone know vb
<4> Good morning guys ...
<4> Anybody still awake?
<5> I am
<5> unfortunately
<4> lol
<5> I should get drunk
<4> Are you working?
<5> nice 4:4am in the sunday mornin drunk



<5> just on one of my websites
<5> Makin it web 2.0 compatible
<4> Well, here it's almost 6am, and I'm at work, been here since 7pm ...!
<5> on a sunday... owch
<4> Yeah, always!
<4> It's actually my fourth night in a row at work ... all 12-hour shifts...
<5> I'm just a part time CS student ... full time bum
<4> Tons of pleasure!
<5> oww.. 12 hour shifts..
<4> Yeah... it's fun ... (not)
<4> I did made one or two 18 hour shifts sometime ago ...
<4> That was painful!
<5> doin computer stuff?
<4> I'm a mainframe operator, plus I monitor Quebecor World's North American network, etc etc etc
<4> Basically, I sit on my *** 'til something goes wrong ...
<4> Anyways ...
<4> D'you know C++ well?
<5> alright I guess
<5> still studyin
<4> How would you read 12:23 into two separate variables? Hours and minutes
<4> From the console, using cin
<4> I've managed to get the first part...
<4> Using :
<5> ignore...
<5> erm..
<4> char hrs[4]; cin.get(hrs,4,':');
<5> no.
<4> Sorry: cin.get(hrs,3,':');
<4> Well, actually, I guess I could also read the entire line (12:23) into a string, and then divide it using other means ... would you now how to do that?
<4> now = know
<5> yah I'm opening my dev c++ now
<4> Cool, thanx! :)
<6> calc tokeniser
<7> tokeniser = std::string s = "This is a string we will tokenise at spaces", t; std::vector<std::string> v; std::istringstream strm(s); while (std::getline(strm, t, ' ')) v.push_back(t);
<6> replace ' ' with ':' for your case
<5> sweet.. tokeniser...
<5> I'm gonna write that one down
<6> Or you could create a local that defines ':' as a whitespace character, but that would be a little more work.
<4> Hmm... We haven't seen tokanizers yet, so I can't really use that... :(
<4> Is there a function that returns the location of a character within a string?
<8> strchr
<4> And a function to then extract a substring?
<6> std::string::find, std::string::substr
<4> Anything I could use with char* ?
<4> lol
<8> strchr
<8> But that's more C
<4> Yeah I know :(
<4> I'm not comfortable with strings in C++ yet so ... :)
<6> Time to get comfortable with them.
<4> And to extract a substring from char* ?
<4> _m_ : lol I totally agree! Why not! You're right! Hold on! :)
<5> if you use strings in c++ check out sstream library
<4> Is it #include <string> ?
<6> Great guess.
<4> lol
<4> :P
<4> To create and use an array of a specific type of objects (let's say boat), can I do this :
<4> boat* arrBoat;
<4> ?
<4> Hmm... probably not!



<6> std::vector<boat> boats;
<4> Can't use vectors, we're not there yet :)
<4> Damn, it would be so easy doing this in C# or Java ...
<4> lol
<6> It would be easy in C++, too.
<4> I guess it would if I were better :)
<6> But if you limit yourself to the C subset of C++ then you're ... limited.
<4> But I'm still learning ...
<4> lol
<4> Agreed!
<4> Can I create an array of pointers to "boat" objects? If so, how?!
<9> boat* xxx = new boat[n] (or) boat xx[n]
<6> yes, boat* foo[3];
<6> That's an array of objects, MrMuscolo.
<9> anyone knows how to get in to #directx? 'caz it asks for "the correct key"...
<4> _m_ : thanx1
<4> !
<4> _m_ : And I guess there no way to create a dynamic array without using vectors?
<9> oh oops...
<9> std::vector
<9> what do you mean by creating dynamic array without vectors?
<6> PM2: sure, but it's messy.
<4> _m_ : I guess you have to add someking of verification that checks if the max size of the current array has been reached, and if so, you create a new one, than copy everythin into it?
<9> anyone knows of any databases of directx DEVICE CAPS? I'd need the caps of a radeon 7000 card
<4> http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/intro/tools/capsviewer.asp
<9> std::vector kind of does that for you.... just use std::vector<t> foo; foo.push_back() foo.push_front(); foo.pop_back(); foo.pop_front()
<9> PM2: 10x
<4> 10x?
<9> PM2: it's not my card whose caps i want to get...
<9> 10x = thanx
<9> :)
<9> thanks
<6> std::vector doesn't support push_front().
<9> I just have to make sure my card runs on a specific card
<9> radeon 7000 (i don't have one)
<4> MrMuscolo : I think I found something, hold on
<4> MrMuscolo : Is that good? http://www.fheinemann.de/caps/view.php?id=126
<9> i found many databases, but no radeon 7000 there
<9> perfect
<9> thanks a lot
<9> :)
<4> No problem ;)
<9> how did you find it?
<9> not google i guess, caz i couldn't find anything there
<4> Google ...
<4> lol
<4> You just have to know how to use Google :)
<4> Most people don't :oP
<4> Just type "DirectX Caps" without the " in the search box ...
<9> hmmm.. i looked for directx device caps...
<4> What are Caps about? Devices ... :)
<9> anyhow... can anybody get me in to #directx?
<9> :p
<4> lol
<4> Looks like you need the correct key :)
<8> #DirectX is varii channel, not programming-oriented or so.
<8> virii* even.
<6> calc virii
<7> virii = there is no such word. It is not the plural of "virus" (see http://spl.haxial.net/viruses.html ). The correct plural of "virus" is "viruses".
<4> lol
<4> Pointers to virii? virii* ?
<4> Ok ... I'm tired ... !
<4> _m_ : Do you see why this crashes? http://www.noidea128.org/sourcefiles/16004.html
<6> You didn't allocate any memory for the array.
<4> Yeah I saw that :)
<4> How do you read an entire sentence using cin ?
<6> std::string line; getline(std::cin, line);
<4> From which cl*** does this getline come?
<6> It's a free function, not a member function.
<6> It's declared in <string>
<6> calc msg
<7> msg = If you have a question then ask it, if you want to discuss a topic, then do it. Asking us "Can I msg you?" or sending unsolicited private msgs is unwanted; asking in the channel shares the answer with all!
<4> lol


Name:

Comments:

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






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

#MissKitten
#AllNiteCafe
rahzelbeatbox
what uncomely creature inspired sailors tales of mermaids
Can't rename localhost_2.log
13pig
#teens
PornoClan
l lolllllllllllllllll
#php



Home  |  disclaimer  |  contact  |  submit quotes