管理4个窗口
#include <stdio.h>
void showModel( int a)
{
int ret=1;
while( ret <=8 )
{
int n = a&ret;
switch(n)
{
case 8 : printf("open FM1\n");break;
case 4 : printf("open FM2\n");break;
case 2 : printf("open FM3\n");break;
case 1 : printf("open FM4\n");break;
default: break;
}
ret = ret*2;
}
}
void main()
{
n = n & 7 ;//0111
n = n & 11 ;//1011
n = n & 13 ;//1101
n = n & 14 ;//1110
n = n | 1 ;//0001
n = n | 2 ;//0010
n = n | 4 ;//0100
n = n | 8 ;//1000
}