| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> okay, more ****ed up than normal <0> not my fault, technically <1> they _made_ you drink that alcohol, smoke that pot, and do that line! <1> I know I know, I believe you my friend <0> Not ****ed up from drugs <2> technically, it is <0> ****ed up from my workout <2> ... ? <0> I got choked unconscious 3 times tonight <2> that's a workout? <1> doomgazer when yo uwoke up did your anus hurt? <1> h0 h0! now _that_ is funny <2> maybe you should find some new friends, heh <0> I was only out for about 1/2 second each time <1> doomgazer I hope you're taking notes, cuz I've got 101 zingers! <1> I gotta jet, fiance's bitching cuz I'm still on the computer
<0> better choked out than knocked out <1> doomgazer teach me that choke out thing so I can use it on her sometime so I can get some peace and quiet <0> maniac, I'll repeat <0> it only leaves them out for about 1/2 second <0> unless you hold it too long <1> I'll apply more pressure ;) <0> then it kills them <0> there's not much middle ground <1> doomgazer but that means I'll get peace and quiet, right? <1> har har <0> until prison... <1> doomgazer take your own advice <0> then I'd be asking about pain in your anus, wouldn't I? <1> [23:20] <0> take a ****ing joke sometime man :-) <1> you got pwn3d on that one <0> Actually, I just waited to turn your words on you bro <1> :/ right... well you win... good job <1> I **** <0> far from it <1> rdragon hey, guess waht, I ****... spread the word <1> I'm out <1> later <0> my neck hurts <1> doomgazer stop ****ing so much ****! <1> ooooooooh, buuuuuuuurn <1> and with that note, I'm out... for real this time (maybe) <0> actually it's from eating too much ***** ;-) <0> well, that and the chokes <3> kis the orriginal coder of irc in here <4> irc is a protocol, not a program <3> i need the orriginal coder <4> you read well? And you ever heard of the term probability? <3> anyone here want to send me the orriginal ric code <5> why would anyone be interested in it? <3> if they want to code there own ircd bacd on it <5> you'd be better off reading the RFC and coding your own <6> yo c++rz <5> ?? <7> werd <8> hi all <9> hy <9> can anyone help me to mak a program that adds,multiplies and substracts polynoms <9> ? <10> hy all, how are you ? <9> hy <9> can you help me? <11> We can help you. However, we won't do your homework. <12> heh <9> notmy homework <9> just a litle help <13> how can i specify the EOF? suppose i have ifstream ifile("test"); how do i check for end of file? <13> i did, char ch; while((ch=ifile.get())!=EOF) {} , its working fine. still, is it the right way? <13> if i say while(!ifile.eof()){} , some extra characters are getting added <11> DoIt: that's wrong in several ways. <11> First of all, EOF is not a character. <11> second <11> calc !eof <14> !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/ <15> and for whatever reason it fails, you're never going to find out if you use C++ streams <15> e.g. file in use by another process <11> santermo: that is very operating system specific. C++ doesn't know anything about terminals, keyboards, screens or mice.
<11> You have to resort to your operating system interfaces. <16> what do i have to tweak? im using windows with turbo c <11> I have no idea about Windows. <13> thankyou guys.... i was away.. sorry <13> http://www.rafb.net/paste/results/gaChoP54.html , can i make it better way? <13> hope, the program that currently have is correct. isn't ? <13> i want to show the file as it is. so am not able to do ifile>>ch; (which is eating the spaces) <11> int main() { std::string filename; std::cout << "enter filename: "; getline(std::cin, filename); std::ifstream in(filename); std::cout << in.rd_buf(); } <13> :) <11> s/rd_buf/rdbuf/ <13> am not supposed to use string cl*** now <13> surely i will go with string, once if am at that part <11> that ****s, because std::string is the right thing to use. What if filenames are longer than 20 characters? <13> btw, in which file getline() is prototyped? <11> (or longer than N characters for any fixed N > 0) <11> std::getline in <string> std::istream::getline in <istream> <13> _m_, my professsor is a STUPID. i already told reagrding that... he want the programs exactly the way he tells <13> tells/teach <11> So I guess using rdbuf() is also unwanted :/ <13> btw, what is rdbuf? <11> A member function of all stream cl***es. <11> It returns the streambuf instance used by the stream. <13> what it will do? <13> okay <11> The streambuf instance encapsulates the i/o operations. The stream cl*** encapsulates formatting. <13> so if i want to copy a file, can i say ofstream op; op<<in.rdbuf(); inside the loop? <11> You don't need the loop with rdbuf(). <13> suppose, i opened the file using op.open() <13> okay <17> I want to define a table (or a multi-dimensional array) of const int values inside a cl***... how do I do that? <18> hm <18> any way to see in advance how many sockets are enqueued in a listening socket queue? <19> hi <19> is there a way to display signal handling table in gdb ? <13> which book explains about the streams better? <20> hi all <20> how to p*** the reserved memory for a std::string to an api ? <13> the problem is , proffessor told about read(), write(), seekg(),seekp(),etc. but didnt tell , in which cl*** its defined. i tried to create an object of ifstream, and used read(), but it seems not working. but working with fstream object <21> slimD: Huh? <20> should i p*** temp char * and then affect it to a string ? <20> or there is better way ? <21> DoIt: Why the heck is he getting into those methods? <21> slimD: myString.c_str() will give you a const char* to the contents of the string. <13> for writing an user object in to a file, and to get it back <21> DoIt: You want "The C++ Standard Library" by Nicolai Josuttis <21> DoIt: I never use those functions. <13> :P <21> He shouldn't be teaching those this soon. <20> Solamente, i'm not trying to read, i'm trying to write, c_str() is a temporary pointer no ? <13> yeah, it need to have (char *) everytime when we p***... <21> myFile << "He should teach this " << 1 << "st." <21> Write? <21> Into the string? <21> You don't. <13> into a file <21> That was for slimD. <20> yes <13> okay.. :D sorry, i misread <21> The myFile line was for DoIt, though. <21> slimD: You don't. <21> string has methods and operators for that. <20> i want to write into the string something but using an api <21> You <21> Don't <21> Do <21> THat <21> How many ways can I say it? <20> the api is asking for a char*, what should i p*** to it <20> a temporary char*? <20> and then use ***ign ? <21> If you want to stick with a C++ container, you could use a vector of chars, pre-allocated to a size. <21> std::vector<char> myBuffer(100); // 100 characters. <21> MyApi(&buffer[0], 100); <21> Anything that asks for a char* should also expect a size, naturally.
Return to
#c++ or Go to some related
logs:
mirc chaco-corrientes #mirc root de scan arris ssh tm502G babwina #linuxhelp #linux route add gw lunix #MissKitten #java
|
|