Skip to content

Tabulador simple para imprimir en consola.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

Kyostenas/tabulador_simple_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USO

incluir archivos .cpp y .h en directorio raiz de proyecto

#include <iostream>
#include <vector>
#include "tabular.h"

vector <std::string> encabezados = {
	"encabezado 1", "encabezado 2"
};
vector < vector <std::string> > datos = {
	{"datos 11",       "datos 12"      },
	{"otros datos 21", "otros datos 22"}
}

std::string nueva_tabla = tabular_datos(encabezados, datos);

std::cout << std::endl << nueva_tabla << std::endl;

RESULTADO

>> ejemplo.exe

     encabezado 1      encabezado 2
  ----------------  ----------------
         datos 11          datos 12
   otros datos 21    otros datos 22

>> 

About

Tabulador simple para imprimir en consola.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages