| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
<pepp^> 3 bucks for text msg, 40 for normal thingy, and 6 for taxes. thats like 50 bucks for my phone bill. ****kkkkkkkkkkkkkkk <Soronel> what exactly do you want to do? <WhiteWolf> Soronel: i just want cin to read this one whitespace <WhiteWolf> but it's got characters after it... but i want the whitespace <WhiteWolf> and i don't want to break my beatuiful cin >> chain <pepp^> WhiteWolf: you can't read whitespace with cin >> you have to getline <WhiteWolf> fine fine fine <Soronel> there's std::noskipws and std::skipws <Soronel> you'de have to look up how to use them though <krucial> hey, i have an compiler error w/ a .o file, and its saying that a function of mines has an undefined reference. What is the biggest possibility of the problem being <WhiteWolf> Soronel: just inline cin as i read <Soronel> krucial: undefined reference to your function? you didn't link the object with that function <WhiteWolf> that's really cool <Soronel> bbiab, time to shoot up <krucial> soronel: u think somethin is mixed up w/ the makefile then? <Inside_> >_> <Inside_> Meow meow meow meow meow meow meow meow meow meow meow Myoou meow meow meow meow meow meow meow meow meow myou myou myoou! <krucial> hey.. can someone tell me what the parameters inside this function mean? http://rafb.net/paste/results/N2ugyt71.html <Inside_> You need to provide more of your code, mate <Inside_> At least cost 59 and not hte error errors message >_> <[eloi]> calc undefined reference <[eloi]> oh, right <[eloi]> calc undefined reference <CalcMe> undefined reference = unresolved symbol = You've declared and used a function/object. Now, define it, using the same name, type, arguments, etc. Make sure to build the definition into your program! Note that { extern int foo; struct Bar { static int baz; }; } are declarations, whereas { int foo; int Bar::baz; } are definitions. Also, templates usually need to be *DEFINED* in header files. <WhiteWolf> does getline advance the internal pointer in the file? <Pegazus> yes <WhiteWolf> to say, the end of the line? <Pegazus> it depends on where you stop <Alipha> it advances it until it reaches the '\n' or whatever <Pegazus> if you read by full lines, yes... <Pegazus> you can do getline(stream,line,'c') and it will stop on the first c i think... <WhiteWolf> if you used the stream extraction operator again, would it pick off from the pointer? <Pegazus> mmmm i suppose... <Pegazus> if you get full lines yes <Alipha> it would start at the character after the 'c' in Pegazus' example, yes <WhiteWolf> hum <WhiteWolf> it's being evil for me then <Pegazus> why? <Alipha> http://rafb.net/paste/ <WhiteWolf> moment <zoinks> can one of you recommend a c++ sockets book? <zoinks> or place where i can find an example of a chat program with tcp/ip <Kardos> bx src <krucial> Hey, lets say i had to use getline that i was reading in from a file. Would it automaticall drop to the next line, or is there a command to make the getline go to the next line <Pegazus> it automatically <Pegazus> if you read full lines... <krucial> is there a way to clear a istringstream <Inkey5> probly like any other stream <krucial> .clear()? <Inkey5> you mean clear or reset to position 0? <krucial> whichever will allow me to reuse that variable of type istringstream <Pegazus> sure <Pegazus> you can close it <Pegazus> and open it again <Pegazus> and an stringstream you can clear it too i think or >> it <krucial> lets say i had istringstream commandStream <krucial> how would i clear or reset it <Inside_> is there a .clear() member function? <krucial> i have no idea <Inkey5> should be <Inside_> You should read up on containers. <Inside_> And templates. <Inkey5> reset would be seekp or seekg or something...have to look that one up <Inside_> Since there's just a few functions and almost all of the c++ stl share em <Inside_> Eew, dude, my keyboard has some sort weird icky ****e in it O_o <wawb> looking at porn? <Inside_> No.. some other stickies O-o <eefwak> woo woo <eefwak> RAPHIE! <pepp^> oh what a movie <pepp^> too sad <eefwak> pepp^: hi <jeffmir> whos in seattle and wants to get ****faced? im buying <Inside_> ooh :O <kawfeee> jeffmir: Where we going? <jeffmir> somehwere with booze <kawfeee> How much booze? <Inkey5> man, I wish you were here and buying <di0aD> what kind of booze <kawfeee> HOW MUCH?! <jeffmir> my work crew ****s, they bailed after 4 rounds <kawfeee> Inkey Winkey <Inkey5> I could go for some cold Rogue right now <jeffmir> so at least another 4-5 rounds <kawfeee> jeffmir: That sounds like a like <di0aD> they're not irish <Inkey5> clearly <di0aD> ;p <di0aD> reminds me last time i went out <Inkey5> line up 4 rounds of Tennants in front of me and see what happens... <Soronel> jeff: I'll be in seattle at the end of the month, can you wait that long? <di0aD> got some wild turkey <di0aD> my friends sat there sipping the **** <di0aD> like it was coca cola <kawfeee> Soronel: evening sir. <Inkey5> bleh...one has to be choosy about liqour <jeffmir> soronel no, but ill schedule you in for then if you like <Inkey5> liquor, even <eefwak> kawfee: what are you doing here? <jeffmir> are you going to be downtown? <eefwak> jeffmir: You buying? <Soronel> though I'll probably be spending most of the time I'm in the area in puyallup rather than seattle proper <jeffmir> i am if we get sufficiently pissed <Soronel> jeff: I'll be downtown at least of couple days, but seeing doctors <eefwak> pissed? <eefwak> Soronel: What kind of doctors? <jeffmir> soronel set aside some time to get ****ed up and ill come find you <jeffmir> or at least get a nice buzz on <pepp^> is this a good time to eat oatmeal? <Inkey5> haha...hes there seeing doctors: "Lets go get sideways!!" <Inkey5> eating oatmeal is ok...drinking oatmeal stout is MUCH better <jeffmir> i happen to have doctors appointment on the 31st up on pill hill, i can meet you directly afterwards :) <jeffmir> eefwik are you downtown? <jeffmir> lets go <jeffmir> if i dont get a positive response soon, ill just decide to stay in and finish this 6 pack of new castle <pepp^> do you guys wanna see cat born with two tongues <pepp^> http://www.local6.com/news/5097535/detail.html <Inkey5> mmmmmm, Newkie..."the Dog" <jammwe> hi... i need to read in a string with some spaces in from the user, can i store all that into a char[]? <pepp^> jammwe: getline is your friend <Inkey5> getline <jammwe> does getline add the null <pepp^> what null? <Inkey5> no, I dont think so <pepp^> no. <Inkey5> no null on the end <jammwe> hmm ok <Inkey5> but you can add it yourself <jammwe> ya <Inkey5> and with getline you can choose the delimiter <pepp^> getline delimits at \n or whatever you tell it to <Inkey5> default is \n <Inkey5> but it reads right through whitespace unless told otherwise <pepp^> this cat's one tongue is dead i think <Inkey5> and if you want to get even fancier you can use stringstreams with it <Inkey5> I realize this is the wrong channel, guys, but does anyone in here know any Pascal? <Inkey5> #pascal seems to be dead <Inkey5> I've never even looked at pascal before tonight, and I'm supposed to write a small program for it <daedalus`> why would it be alive <Inkey5> indeed, daedalus <Inkey5> a live channel for a dead language would be a bit ironic <jammwe> is there any other function besides getline that would read in a line from the user <jammwe> just curious <Inkey5> a getc loop <pepp^> jammwe: make one for yourself. Whats the point of having duplicate functions? <berty> pascal is an educational language <berty> has no use in the real world <pepp^> getc gets a character not a line.
Return to c++ or Go to some related
logs:
football RT2750 USB
|
|