Originally Posted by vendtagain
i used to iostream for output with c++, but I have been noticing stdio.h more common for output since iv started linux? is stdio more for C and iostream made for c++? or is it just a preference?
It is not just a preference -- they refer to entirely different things:
# include <sdtio.h>
printf("There are %d bottles of beer on the wall\n",total);
std.cout << "There are " << total << " bottles of beer on the wall" << std.endl;
Completely different design and intention. By the way, in your programs don't mix the two I/O styles shown above -- use one or the other exclusively. Mixing them causes endless synchronization difficulties.