>>> are other C functions which intrupt C++ functionality?
Probably! Although this is the area which seems to cause most problems.
>>> are other C functions which intrupt C++ functionality?
Probably! Although this is the area which seems to cause most problems.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
to me a stream is a source of data input, could be from keyboard, file, modem, or whatever. The data could be coming or going from the program.
to me a buffer is any container used to temporarily hold data input from a stream until it can be used at a later time. Can be an array, a stack, a queue, or whatever. I suppose you could even consider a single variable to be a buffer, but usually I've seen the term used for a (potential) group of data.
you can safely mix C and C++ style i/o as long as you put in a call to sync_with_stdio(). This call forces both C and C++ style i/o to share their buffers.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
>>> as long as you put in a call to sync_with_stdio().
Yes, that's true SC, I'd forgotten about that. ISTR there is a performance hit when you do that though.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
I dont know because I dont often use it. In fact the nearest I get is TextOut() lol. But I know how its done. I sould imagine that the c++ calss stay about the same and the c style calls would take a small performance hit but cant say for sure. try it and see.You could write a couple of small funcs that loop some output to file and input from file and use the profiler to see if there is much difference.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi