@# 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 11 12 13 14 15 16 17 18 19



Comments:

<0> too much of a newbie
<0> Asriel, when defining macros with args, I don
<0> I don't have to put void or something in front of them ?
<0> the data type of the return or void
<1> macros aren't functions
<0> no
<2> No - because it's a "function" of the preprocessor, not of the language
<2> it's like a giant automated copy and paste
<0> ok, easy
<3> just like #include
<3> it's magic.
<2> I recommend you avoid them if at all possible, but in some cases (such as this), you don't get much choice
<0> no, thanks
<3> ugh, I feel so out of it
<3> I just want to go home.
<4> Asriel __FILE__ and __LINE__ are the names, and they're in the standard, iirc



<2> Really? I always thought they were an extension
<2> hmm, indeed. implementations are required to provide __LINE__, __FILE__, __DATE__, __TIME__, __STDC__ and __cplusplus
<2> section 16.8 of the 1998 release
<3> you **** Asriel
<2> few doubts there
<0> __LINE__ doesn't say where the error occured
<0> just where the printf or macro was called from
<4> no it says where the line was when the __LINE__ was compiled
<2> I thought that was what you wanted
<2> How could it know where the "error" occured?
<2> when you're defining what error means with your function call
<2> well, macro
<2> anyway, must run. g'night all
<5> hey all, I'd like to know if anyone has ever coded an USB driver on WinXP.. I want to know where to start.. thansk
<6> No
<6> Nobody ever has
<6> And nobody ever will
<6> Just accept it and mone on :)
<0> JBlitzen, you sound o optimistic
<7> iterating through a set is done in the order specified by the predicate? (from "lesser" to "greater")?
<3> hmmm, flavia ****s.
<0> vawjrwrk, no way of telling what the function name is, instead of using __LINE__ ?
<4> not in the standard, why?
<4> the line number takes you to where you asked for it
<7> vawjrwrk could you help me with my question pls?
<4> what could does the function name do you?
<0> informative
<0> but never mind
<4> Pegazus read the topic. I don't see any question
<0> when using fread I read a value from a binary file
<0> int
<7> i already asked it...
<0> then there's another value right after it
<7> but if you want it again...
<7> iterating through a set is done in the order specified by the predicate? (from "lesser" to "greater")?
<0> if I call the them int m;, and int n; does two fread calls take each of them one by one?
<0> the file stream continues to the next byte size?
<7> so? :)
<0> fread(&n, sizeof(int), 1, file_pointer);
<0> fread(&m, sizeof(int), 1, file_pointer2);
<0> would that work when reading a binary file
<0> ?
<8> only if the values were written in a compatible way
<8> in generally, the file io equivalent of memcpy isn't good
<8> s/ly//
<7> does my messages(questions) get to the channel?
<8> Pegazus: we can't see what you type
<0> yes, I see it
<8> Pegazus: yes, iterating over a set is in the order established by the predicate
<7> thanks! :)
<4> Pegazus of course that's how it iterates..... you EVER gonna get a book??
<4> corstan why are you usine fread in a C++ program?
<0> that's what I know of when reading a binary file
<0> or fwrite
<4> you need some books also
<4> what the hell are you using to try to learn C++?
<7> vawjrwrk i was wondering, how does a hash_set iterates, because doing it by order would be really tricky...
<4> Pegazus if you look at TR1 you'll notice they're unordered collections
<7> hehe :p thanks
<7> have they been incorporated to the standard so?
<4> though it will be the same every time you iterate through it, barring changes



<0> err, infile.read(....), outfile.write().....
<9> has anyone been successful in building boost.filesystem?
<4> corstan ok, what about them?
<4> YUY0x7 yes, I use it w/ vc8
<4> here at work and at home
<0> that's the functions commonly used in C++ for the operations I describe, just mixing things up
<7> see you in #boost vawjr :)
<4> not if I see you first, pegazus
<9> vawjrwrk, did you have to build bjam using the build.bat in tools/build/bjam_src ?
<4> I don't recall, the regresson scripts build jam for me, and I don't remember what we did here
<4> YUY0x7 but that sounds familiar
<0> if I have a pointer to a typedef struct
<0> like my_struct *p
<0> then my_struct has a member int a
<0> what's the address to ta?
<4> who cares if it's a typedef struct?
<0> &(p->a) ?
<4> corstan why would you care??
<0> because I want it to work....?
<6> Heh
<4> what "what" to work?
<0> my life
<4> that ain't gonna help
<6> Yes, &(p->a) should do it, corstan
<0> oki
<4> JBlitzen you're far to ****ing easy
<9> vawjrwrk, i'm trying to build it using that batch program and it errors, what are those regression scripts you talk about?
<6> The dude asked a pretty straightforward question
<4> if thesse guys never start to use their brain they'll be Republicans all their life
<4> lol
<6> He came up with the right answer
<0> heh
<4> which is answered in every goddamned reference on C or C++ in the universe
<6> Republican enough for me
<6> I don't know, it's a bit vague
<6> &p->a wouldn't work
<4> he still hasn't answered why he thinks he _needs_ the address of a struct element
<6> Well
<6> It happens
<0> vawjrwrk, because I need to dump a variable from a file into that element?
<0> os.write((char*) &r, sizeof(double));
<0> os is some ofstream object
<4> sizeof r is safer
<4> and you might want to use my bfstream cl*** (posted at noidea) to make things simpler
<4> one presumes that you have opened your file using ios::binary
<4> http://www.noidea128.org/sourcefiles/853.html if you're having problems finding it... it's free, no license
<4> and you will get to use it like os << r;
<4> I've gotta pick up my daughter from school and get home before her mom leaves for work.. I'll check in from there (30 min?)
<3> ok, this cup of cocoa is better
<3> it needed stirred
<6> Nice
<3> stupid Flavia
<0> was vawjrwrk talking to me?
<6> Probably
<0> wow
<3> I don't think that's a good analogy
<0> no, I guess not :)
<10> well, got here before wife had to leave, but it was more than 30 min
<10> YUY0x7 the boost regression test scripts
<9> oh ok.. well i think i got it using bjam, thanks
<10> YUY0x7 oh, I use bjam AFTER I build it
<9> what for
<9> ?
<10> ok, maybe the network is stablizing
<10> _m_ you around??
<11> something odd been going on? (#programming is +i too, which is kinda weird)
<10> mint and maybe r, I cannot see r w/ this client
<12> pong!
<10> odd
<10> we've got a "spy" in the channel
<5> um um
<6> It's rdragon


Name:

Comments:

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






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

sshfs +troubleshooting
#skype
#chatzone
#AllNiteCafe
hbieb bl msn
gentoo rtl8180 masked
#AllNiteCafe
majeckel
WHAT IS THE GEOMETRIC SHAPE OF THE CELLS IN A HONEYCOMB?
#chatzone



Home  |  disclaimer  |  contact  |  submit quotes