Skip to content

It is very small but useful, easy to use c++ to create colorful code

License

Notifications You must be signed in to change notification settings

liuzhuoling2011/C-ColorPrint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C-ColorPrint

It is very small but useful, easy to use c++ to create colorful code

#include "ColorPrint.h"
int main() {
	PRINT('I', "lalala, I am white" << 1 << "!");
	PRINT('N', "lalala, I am cyan" << 2 << "!");
	PRINT('W', "lalala, I am yellow" << 3 << "!");
	PRINT('S', "lalala, I am green" << 4 << "!");
	PRINT('E', "lalala, I am red" << 5 << "!");
	PRINT('I', "lalala, I am white again" << 6 << "!");

	PRINTF('I', "lalala, I am white%d!", 1);
	PRINTF('N', "lalala, I am cyan%d!", 2);
	PRINTF('W', "lalala, I am yellow%d!", 3);
	PRINTF('S', "lalala, I am green%d!", 4);
	PRINTF('E', "lalala, I am red%d!", 5);
	PRINTF('I', "lalala, I am white again%d!", 6);
}

About

It is very small but useful, easy to use c++ to create colorful code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages