Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 547 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 547 Bytes

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]));