#ifndef _CSVPARSE_
#define _CSVPARSE_
#include "cocos2d.h"
#include
#include
#include
using namespace std;
class CSVParse {
public:
private:
public:
};
#endif
#include "CSVParse.h"
using namespace cocos2d;
CSVParse::~CSVParse()
{
}
// split: split line into fields
void CSVParse::split(vector& field, string line)
{
}
// advquoted: quoted field; return index of next separator
int CSVParse::advquoted(const string& s, string& fld, int i)
{
}
// advplain: unquoted field; return index of next separator
int CSVParse::advplain(const string& s, string& fld, int i)
{
}
// getfield: return n-th field
const char* CSVParse::getData(int m,int n)
{
}
//读取方式: 逐行读取, 将行读入字符串, 行之间用回车换行区分
//If you want to avoid reading into character arrays,
//you can use the C++ string getline() function to read lines into strings
bool CSVParse::openFile(const char* fileName)
{
}
调用代码: