How can I write colored text to the console with C++? That is, how can I write different text with different colors?
You don't need to use any library. Just only write system("color 4f");