#include <iostream> using namespace std; int main(int argc, char** argv) { bool x,z,c,v,b,n,m; int a=0; x=z=c=v=b=n=m=true; z=!z; v=!v; n=!n; c=!c; n=!n; if(x)a++; if(z)a++; if(c)a++; if(v)a++; if(b)a++; if(n)a++; if(m)a++; cout<<a<<endl; return 0; }
标签:std,cout,++,开关,int,main From: https://www.cnblogs.com/w6826301/p/17460777.html