1 2 3 4 5
|
char* symbLi = new char[5] { '?', '!', '(', ')', '@' } ;
char* symbLi2 = new char[10] { '?', '!', '(', ')', '@' } ; // rest are zero initialised
std::unique_ptr< char[] > symbLi3 { new char[5] { '?', '!', '(', ')', '@' } } ; //managed by the unique pointer
std::vector<char> symbLi4 { '?', '!', '(', ')', '@' } ;
std::string symbLi5 = "?!()@" ;
|