how would i put this into a library so i could use this for any program.Code:#include <string.h>
#include <conio.h>
#include <iostream.h>
void center(char txt[60], int height)
{
int number, spaces;
number = strlen(txt);
spaces = 40 - number/2;
gotoxy (spaces,height);
cout << txt << endl;
}