我也要贴一段代码试试

#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;

	

	
}

  

转载于:https://www.cnblogs.com/wangpeiq/p/10682499.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值