Write a program of fill() function


 

/* Write a program of  fill() function*/

#include<iostream.h>

#include<conio.h>

#include<string.h>

void main()

{

cout.fill(‘#’);

clrscr();

cout.width(6);

cout<<“204”;

cout.width(4);

cout<<“34”;

getch();

}

/* output:

###204##34*/

Related Posts

Comments are closed.