概述
//三色旗问题
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define BLUE 'b'
#define WHITE 'w'
#define RED 'r'
#define SWAP(x,y){char temp;
temp = color[x];
color[x] = color[y];
color[y] = temp; }
int main()
{
char color[] = { 'r','w','b','w','w','b','r','b','w','r','