Skip to main content
Text mode Output using INSERTION "<<" Operator.
CODING:
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
void main()
{
int i=666;
char c[10]=" Example";
double d=69.69;
clrscr();
ofstream fout("ex.txt");
fout<<c;
fout<<d;
fout<<i;
getch();
}


Comments