c++ - c ++ String array issue -


I'm just learning C ++ with Java background.

Just playing with simple sections now, but for some reason the following compilation will not occur, when the same syntax will make somewhere fine:

  class carddellar {personal : String suit [4]; String value [13]; Bull Cards Ticken [4] [13]; Int getRand (Int Top); Zero getValidSuit (int * suite); Zero getValidCard (int suite, int * value); Public: CardDelier (); String deal card (); Zero reset (); }; CardDelor :: CardDelier () {suit = {"heart", "club", "spades", "diamond"}; , "Three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", " King"}; False, false, false, false, false, false, false, false, false, false, false} {false, false, false, false, false, false, false, false, false, false, false, false, false, false False, false, false, false, false, false, false, false, false, false, false, false false, false, false, false, false, false}}; }  

Obviously this is just a part of the class, so please do not give me '' 's'

Do not shout to mislead the Institutions in the constructor, Errors are:

  1>. \ CardDealer.cpp (26): Error C2059: Syntax Error: '{' 1>. \ CardDealer.cpp (26): Error C2143: Syntax Error: Disappears ';' Before '{' 1>. \ CardDealer.cpp (26): Error C2143: Syntax Error: Disappears ';' '}' Before 1. \ CardDealer.cpp (27): Error C2059: Syntax Error: '{' 1>. \ CardDealer.cpp (27): Error C2143: Syntax Error: Disappears ';' Before '{' 1>. \ CardDealer.cpp (27): Error C2143: Syntax Error: Disappears ';' '26': Error C2059: Syntax Error: '{'  

Line 26 is where I started the suit ( suit = { ...)

Thank you for taking friends, much appreciated

++ 0x, you can use the entire initial syntax (i.e., braces) when declaring an array only.

Note that this program returns the same error:

  int] [4]; Int main () {matter = {0, 1, 2, 3}; }  

You have to start an array in your array with a few tedious bracket syntax at a time.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -