// ReadConfig.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
using namespace std;
void InitFact(char* pFile);
int main(int argc, char* argv[])
{
char* pFile = "";
InitFact(pFile);
return 0;
}
void InitFact(char* pFile)
{
ifstream ifile;
爆笑喜剧 ifile.open(pFile,ios_base::in);
if (!ifile.is_open())
{
cerr << "Cannot open The " << pFile <<endl;
}
char buff[256];
memset(buff,0x00,256);
while (line(buff,256,'\n'))
{
line(buff,256,'\n');
char MsgName[256] = {0};
strncpy(MsgName,buff,256);
cout << MsgName << endl;
memset(buff,0x00,256);
line(buff,256,'\n');
char MsgType[256] = {0};
strncpy(MsgType,buff,256);
求都市异能小说 cout << MsgType << endl;
memset(buff,0x00,256);
while (line(buff,256,'\n') && buff[0] != NULL)
{
cout << buff << endl;
memset(buff,0x00,256);
}//end while(buff[0] != null)
}//end line())
}
//文件的内容格式中秋节2022年是几月几日
[qq登陆消息]
commandID:1213
logID | string | 12
passwd | string | 20
[聊天消息]
commandID:25432情人节文案怎么写简短
name | string | 4
passwd | int | 4hdmi 没声音
content | string| 256
[发送图片消息]
commandID:25431
srcDeviceType |int |4
srcDeviceId |string |20
destDeviceType |int |4
destDeviceId |string |20
transactionID |string |40
userIdType |int |4
userId |string |36
serviceIdType |int |4
spId |string |21
productID |string |21
ordertype |int |4
confilctSolve |int |4
bsspChargeParty |int |4
Fee |int |4
什么水果无糖或降糖ServiceNumber |int |4
pServiceIDList |string |21
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论