tags:

views:

67

answers:

2

Hi,

I am new to C++, can anybody provide me some sample program's for String array and Arraylist/list in C++

Thanks in Advance.

+3  A: 

You can use std::vector<std::string>. it can be accessed like a normal array (i.e. it provides operator[]). See here for the methods provided by vector. You can insert the elements using push_back and access elements either using an iterator or operator[]

Naveen
A: 

You can refer the following urls,

1. String

2. Character Sequence

3. STL

Prabhu Jayaraman