Skip to content

Create nice-looking headers in C++ using this function that automatically takes care of the length of the text and centeres it for you. Pretty cool, uh?

Notifications You must be signed in to change notification settings

Miky88/CPP-Header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

CPP-Header

Create nice-looking headers in C++ using this function that automatically takes care of the length of the text and centeres it for you. Pretty cool, uh?

Screenshot

How to use

string head[] = {
  "Hello World!",
  "This is a sample text!",
  "Put whatever here.",
  "I'm a teapot!"
};

/*
  You need to pass the array with header strings and the number of lines the array has
*/

header(head, sizeof(head)/sizeof(head[0]));

About

Create nice-looking headers in C++ using this function that automatically takes care of the length of the text and centeres it for you. Pretty cool, uh?

Topics

Resources

Stars

Watchers

Forks

Languages