#include <iostream> #include <string> using namespace std; #include <stdint.h> #include <stdio.h> #include <stdlib.h> typedef uint32_t u32; typedef uint8_t u8; typedef uint16_t u16; typedef enum { Msg_Type_Unknown = 0,//未知类型 Msg_Type_Text = 1,//文本消息 Msg_Type_Voice = 2,//语音消息 Msg_Type_Video = 3,//视频消息 Msg_Type_Picture = 4,//图片消息 Msg_Type_Position = 5,//位置消息 Msg_Type_File = 6,//文件,底层默认压缩 Msg_Type_File_UnCompress = 7,//文件,底层不压缩 Msg_Type_GroupNty = 9,//群组通知 Msg_Type_End }MsgType; //群组通知消息类型 typedef enum{ NTUnknownNotice = -1, NTRequestJoinGroup,//申请加入群组 NTInviteJoinGroup,//邀请加入群组 NTMemberJoinedGroup,//成员加入群组 NTDismissGroup,//解散群组 NTQuitGroup,//退出群组 NTRemoveGroupMember,//删除成员 NTReplyRequestJoinGroup,//回复申请 NTReplyInviteJoinGroup,//回复邀请 NTModifyGroup,//修改群组信息 }ECMessageNoticeCode; int main() { cout << "hello,world" << endl; cout << "ni hao " <<endl; MsgType msgtype; msgtype = Msg_Type_Unknown; msgtype = Msg_Type_Video; ECMessageNoticeCode MessageCode = NTRequestJoinGroup; if(MessageCode == NTRequestJoinGroup ) cout << "麻烦您,加入群组" <<endl; return 0; }