initializer-string for array of chars is too long error
问题 I am working on a BlackJack Game using C++, and I have the following piece of code within it where I am getting an error typedef struct { int value; char suit[8]; char name[8]; }Deck; Deck Cards[52] = {{ 1,"Ace","Hearts"},{ 2, "Two","Hearts"}, { 3, "Three", "Hearts"}, { 4, "Four","Hearts"}, { 5,"Five","Hearts"},{ 6,"Six", "Hearts06"}, { 7,"Seven","Hearts"},{ 8,"Eight","Hearts"},{ 9,"Nine","Hearts"},{ 10,"Ten","Hearts"},{10,"Jack","Hearts"},{10,"Queen","Hearts"},{10,"King","Hearts"}, { 1,"Ace"