console - Is there any way to change the colour of a string within a string in c++ -
this code, have string called battlelogs
stores result of battles take place in turn, factionfighter
name of attacker , factiondefender
name of defending faction, there 14 total factions , set 1 of prior fight, of works problem each faction has own colour, , want have text show colour of faction on name.
so if rebels grey , bandit horde green, display word rebels in grey , bandit horde in green, know how change colour of text put out cout, strings within strings don't know how it.
battlelogs += factionfighter + " attempted raid lands of " + factiondefender + " unsuccessful\n";
any appreciated
Comments
Post a Comment