declaration of array list in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahma gawish
    New Member
    • Nov 2011
    • 1

    declaration of array list in c++

    how i can define arraylist in c++ as java
    ArrayList a=new ArrayList();
    and ican cast it to any data type iwant
    because in general it return object
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    syntax for array list in C++ is...
    Code:
    [B]variable_type[/B]  *variable_type=new variable_type[size]

    Comment

    Working...