0

The array

Can an array be of type "string"?

21st Jan 2019, 3:39 PM
Александр Могилёвский
2 Answers
+ 1
Sure! You can declare arrays for all types you want! #include <vector> #include <string> #include <iostream> int main() { std::vector<std::string> stringVector; }
21st Jan 2019, 3:42 PM
Théophile
Théophile - avatar
0
Can you give an example, please. Using the type "string".
21st Jan 2019, 3:49 PM
Александр Могилёвский