私の構造は次のとおりです。
struct Candidate {
float pertotal, voteper;
string name;
int voten, votem, votese, votesw, total;
};
name に null 値を割り当てる必要があります。私が試してみました:
struct Candidate {
float pertotal, voteper;
string name = 0;
int voten, votem, votese, votesw, total;
};
と
struct Candidate {
float pertotal, voteper;
string name = "";
int voten, votem, votese, votesw, total;
};
しかし、それは好きではないようです.. アイデア?