Miky88 / 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?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?


Languages

Language:C++ 100.0%