About 423,000 results
Open links in new tab
  1. Array of Strings in C++ - GeeksforGeeks

    Feb 26, 2025 · Understanding how to create and manage arrays of strings is essential in C++. The C++ Course covers five different methods for creating arrays of strings, helping you …

  2. How to declare an array of strings in C++? - Stack Overflow

    Jan 28, 2016 · You can directly declare an array of strings like string s[100];. Then if you want to access specific elements, you can get it directly like s[2][90]. For iteration purposes, take the …

  3. c++ string array initialization - Stack Overflow

    Mar 9, 2012 · Prior to C++11, you cannot initialise an array using type[]. However the latest c++11 provides(unifies) the initialisation, so you can do it in this way: string* pStr = new string[3] { …

  4. Arrays and Strings in C++ - GeeksforGeeks

    May 7, 2020 · In C++, a string is sequence of characters that is used to store textual information. Internally, it is implemented as a dynamic array of characters. Array of strings is the array in …

  5. c++ - Initializing a two dimensional array of strings - Stack Overflow

    Jun 29, 2018 · You can declare a multidimensional array of strings like this: std::string myArray[137][42]; Of course, substituting your own width/height values for 137 and 42.

  6. C++ Arrays - W3Schools

    To declare an array, define the variable type, specify the name of the array followed by square brackets and specify the number of elements it should store: string cars[4]; We have now …

  7. 5 Different Methods to Create String Arrays in C++

    Nov 7, 2024 · Learn 5 practical ways to create and manage arrays of strings in C++. Master string arrays with clear examples and step-by-step guidance for better C++.

  8. How to Create an Array of Strings in C++ - Delft Stack

    Feb 2, 2024 · Use the string arr[] Notation to Create an Array of Strings in C++. Another useful method to create an array of strings is the C-style array of string objects; this would declare a …

  9. Create array of strings in C++ - CodeSpeedy

    We can create array of strings in C++ in many ways. We are giving you some easy way to do that. You can create static array, dynamic array and using vector.

  10. Understanding C++ String Array - DigitalOcean

    Aug 4, 2022 · We’ll cover C++ string array in today’s article. 1. The String keyword to Create String Array in C++. C++ provides us with ‘ string ’ keyword to declare and manipulate data in …

Refresh