c+字符串数组
Hey, Folks! So, as programmers, we often deal with Arrays of all data types. We’ll cover C++ string array in today’s article.
嘿伙计! 因此,作为程序员,我们经常处理所有数据类型的数组。 我们将在今天的文章中介绍C ++字符串数组 。
声明C ++字符串数组的方法 (Ways to declare an C++ String Array)
1.使用String关键字在C ++中创建字符串数组 (1. The String keyword to Create String Array in C++)
C++ provides us with ‘string‘ keyword to declare and manipulate data in a String array.
C ++为我们提供了' string '关键字,以声明和操作String数组中的数据。
The string keyword allocates memory to the elements of the array at dynamic or run-time accordingly. Thus it saves the headache of static memory allocation of data-elements.
 string keyword相应地在动态或运行时将内存分配给数组的元素。 这样就免除了静态分配数据元素的麻烦。 
Syntax: To declare an array of string using ‘string’ keyword</
















