here0217:
您好,我在vxcode上尝试使用您的指令,但是还是发生了arm的错误。[code=cpp]
//personinfo.h
#ifndef PERSONINFO_H
#define PERSONINFO_H
#include
#include
using namespace std;
class PersonInfo
{
private:
/* data */
string name;
vector
public:
void setName(string name);
void setPhone(string phone);
// string retName();
};
#endif
//personinfo.cpp
#include
void PersonInfo ::setName(string name){
this->name=name;
}
void PersonInfo ::setPhone(string phone){
this->phones.push_back(phone);
}
//main
#include
#include
#include
#include "PersonInfo.h"
#include
using namespace std;
// struct person
// {
// /* data */
// string name;
// vector
// };
int main(){
string line,word;
vector
string temp;
while (getline(cin,line))
{
/* code */
PersonInfo info;
istringstream record(line);
record>>word;
inf
[/code]
纰漏的意思删除订阅和购买记录