| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<ghled> so many Vovas <Vova2> my visual studio is a little wierd with the auto completion... _nx you think its because im using * instead of & <Vova2> *is acting <GenNMX> The mind of a typical programmer -- "When 'int life' is not initialized, I'll just return "error 42"." <west246> hi <ghled> hey! <ghled> cobain! <Niaboc> anyone here know a good decompiler for a .cor file? <west246> what business does a dead rock star have in here? <ghled> ask Niaboc <Quant> yo fellas, cin>>x[10]; will gimmie 10 char's no? <Quant> char x[10]; <X-Istence> Quant: just use std::string <Quant> X-instence, then how do i get an array for chars from that? <ghled> cin>>x; <Quant> and how to limit input?
<ghled> cin.getline(x,10); <Yippy> or cin.getline(x,10,'\n') <Quant> ok i see where i went wrong ghled <Quant> 1sec <Quant> i put x[10] by accident <Quant> lol <ghled> haha <ghled> use getline if you want to limit it, though <Mxrcelus> erm.. just another newbiw question, How to kill a program in a bad condition ? something like if (x == 1) { die; } <ghled> exit(0); <Quant> yup that was it, thanks <sculptor> exit(1); <Quant> any idea how to do the "Press any key to quit"? <Mxrcelus> Ty mr ;) <Yippy> (#include <stdlib.h> <ghled> yes, 1 is better, I guess <Yippy> Okay. That's the quota for newbie questions <GenNMX> I like to make vectors with void pointers. I also like to burn myself with candles! <Mxrcelus> Quant, I used to put system("pause") <GenNMX> Void pointers are far more pleasurable to a masochist. <sculptor> Press any key to quit? Noo, noo, noo that one! <ghled> "where's the 'any' key?" <Yippy> and where's that tab? <Quant> Mxrcelus: is that a DOS command or what is it? <Mxrcelus> Quant, yep thats it. <Quant> meh <Mxrcelus> or just make something like that in the end.. cout << "Press any key to exit" ; cin >> theend ; <ghled> cin.get(); <Yippy> way back when, you could just say getch() <ghled> or getch <ghled> one of those <Raphael^^> k00: do NOT bold again. <k00> ok <ghled> you want the regex to match just "right"? <YUY0x7> Mxrcelus, that would wait till the user presses enter <k00> yes.. <k00> but its matchiing border-right as well <Mxrcelus> aw.. yea, I just thought about that right now :p <ghled> try ^right$ <Mxrcelus> Why not to change to "Press enter to quit" ? Hehehe <pyrrhic> you could insert some nifty asm :) <ghled> any luck, k00? <k00> nope <k00> ^ matches the begining of the file <ghled> I'm confused then <ghled> you want to match right, but only if it's not preceded by "border-"? <berty> confusatron! <Kniht> k00: what regex are you using now? <k00> the .net framework <k00> i got <k00> right:.+?; <ghled> (?<!border-)right <ghled> try that <k00> nothing can come before right <ghled> oh, nothing at all? <k00> yes..except for spaces and new lines, etc <ghled> there's a metacharacter for that <ghled> try \s?right <ghled> maybe without the ? <k00> Matches any white space character including space, tab, form-feed, and so on. Equivalent to [ \f\n\r\t\v].\
<k00> yes <k00> let me try <k00> yep <k00> thanks <ghled> which did it? <ghled> \sright? <k00> yep <k00> \sright <ghled> excellent <k00> ty ghled <ghled> now type in bold for me <k00> :-D <k00> [bold]Ok[bold] <ghled> yay <oxix_m> hello <Quant> yo guys <ghled> hi! <Quant> i want to have <Quant> "Press any key to continue" <Quant> i trie <Quant> cout<<"Press any key"; <Quant> then <Quant> getch(); <ghled> but? <Quant> but when i press enter it doesn't exit, i must put in a char <ghled> try cin.get()? <Yippy> oww.. don't pull hangnails. Hurts like hell <Quant> thanx <ghled> it worked? <Kniht> calc wait <CalcMe> wait = If you're using Dev-C++ or some other IDE that closes a program before you can see what the console program output, try this at the end of main(): cout << "Press Enter to continue." << endl; cin.ignore(INT_MAX, '\n'); <ghled> cin.ignore! <ghled> that's it <ghled> thanks, CalcMe <ghled> and maybe kniht too <Kniht> calc yw <CalcMe> yw = You are welcome. <upb> lol <ghled> hey, I'm not the one using it <ghled> I was just trying to remember what the function is <upb> is there a ihgmf = I'm hungry, give me food? <Kniht> calc ihgmf <CalcMe> ihgmf = I'm hungry! Give me food! <pepp^> what is the deal with www.live.com <pepp^> ironically live.com only loads on firefox. WTF? not on opera or IE <Quant> that's for the help all <Yippy> vs2005's been installing forever.... this thing is friggin' huge <Quant> i installed mine now i dont have any space to instlal sql2k5 <pepp^> vs2003 was insanely huge <pepp^> is there a reason why gmail and live.com won't open on ie and opera when they would open in firefox? <oxix_m> you guys think it's excessive to separate a structure with 3 members into its own header? <oxix_m> if it's reused in several places in the system... <oxix_m> should it be bundled together with other stuff? <fallacy> oxix_m: sure, why not <oxix_m> yay <ghled> is there any simple way to figure out what directory an executable is running from? <ghled> in Unix <skie> getpwd, if you haven't changed the pwd <skie> er, getcwd <Alipha> ghled: which <ghled> which which? <Alipha> which ls <Alipha> displays /bin/ls or whatever <ghled> hmmmmmm <ghled> so I can which argv[0]? <skie> no. <ghled> I need to open an output file that's in the same directory as the executable <skie> unless you want to feed which the entire fs tree <skie> use getcwd, its what you want. <ghled> ok, thanks <skie> hm. actually, it may not be, depending on how your program is executed <ghled> uh oh
Return to
#c++ or Go to some related
logs:
#football #ponti kemeja 126 #planc What does 'majuba' mean #metallica sugarcube irc
|
|