Lecture 141
Procedures and Functions
Code:
#include <iostream>
#include <conio.h>
using namespace std;
void Line(void); //
Prototype for Line();
main ()
{
Line();
cout<<"\xDB TITUS ANDRONICUS \xDB\n";
Line();
getch();
return 0;
}
void Line()
{
for(int
i=0;i<20;i++)
cout<<"\xDB";
cout<<"\n";
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10