Change the output text color

What is healthy color –

#include <stdio.h>
#include <windows.h>

int main()
{
    
    
  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN);
  printf("我绿了吗~~~\n");

  return 0;
} 

Guess you like

Origin blog.csdn.net/and_what_not/article/details/114155933