aafulei / color-console

A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.
MIT License
258 stars 47 forks source link

Question about strings #1

Closed Ryan-Axtell closed 3 years ago

Ryan-Axtell commented 3 years ago

I want to try to dye a string that is defined by a cin >> input, and make the string reference the color each time the string is called. I.E. string firstName cin >> firstName how do I do this?

Ryan-Axtell commented 3 years ago

I found the solution, auto name = dye::blue(string{firstName+(any other string)}