Output of items in C++
Output is defined similarly, using files cout and cerr as the equivalent of stdin and stderr in C.
#include<iostream.h>
int main()
{
cout << 3 << 'e' << 3.4 << "yes";
return 0;
}
Plain text version to compile and run
Will output the line
3e3.4yes
Next note in series
Back to index