我也要贴一段代码试试

#include <iostream>
#include <string>
using namespace std;
enum open_modes {input, output, append}; 
#define FLAG1 0x00000001
#define FLAG2 0x00000002
#define FLAG3 0x00000004
#define FLAG4 0x00000008
#define FLAG5 0x00000010
#define FLAG6 0x00000020
#define FLAG7 0x00000040
#define FLAG8 0x00000080
#define BSC //
string mm;
struct bs
{
	int a:8;
	int b:2;
	int c:6;
}data;

class Base {
public:
private:
	int circle ; 
	int dos;

};
class Drived1 : public Base
{
};
class NoRelation
{

};
class Drived2 : public Drived1
{
public:
private:
	int i;
	NoRelation m;
double* pd;
};

enum tagbgproutman
{
	stroute1,
	stroute2,
	stroute3,
	stroute4,
	stroute5,
	stroute6,
	stroute7,
	stroute8,
	stroute9
};
int sun(int a, int b)
{
	return a+b;
}
#define FLAG_1 1
void main()
{
	int n1 = FLAG_1;
	int n = 1<<2;
    int m = 2<<4;
	int z = 2<<32;
	int a = 1;
	int b = 2;
	cout<<stroute1<<"..."<<stroute2;
	-sun(a,b);
	if(-3 == -sun(a,b))
		cout<<"to be healthy one"<<endl;
	int intsrc = 0xB1;
	cin>>intsrc;
	if(intsrc & FLAG2) {
		cout<<"flag2"<<endl;
	} 
	if(intsrc & FLAG1) {
		cout<<"flag1"<<endl;
	}
	if(intsrc & FLAG3) {
		cout<<"flag3"<<endl;
	} 
	if(intsrc & FLAG4) {
		cout<<"flag4"<<endl;
	}
	if(intsrc & FLAG5) {
		cout<<"flag5"<<endl;
	}
	if(intsrc & FLAG6) {
		cout<<"flag6"<<endl;
	}
	if(intsrc & FLAG7) {
		cout<<"flag7"<<endl;
	}
	if(intsrc & FLAG8) {
		cout<<"flag8"<<endl;
	}
	char atom = '6';
	char atomi = 54;
	char atomh = 0x36;
	cout<<atom<<endl<<atomi<<endl<<<<atomh;

	

	
}

  

posted @ 2019-04-10 11:42  天堂难民  阅读(134)  评论(0编辑  收藏  举报