How do I take a vector such as:
< (2,c) (4,T) (3,R) >
and print out a dynamic array such as this:
0---C
1---C
2---T
3---T
4---T
5---T
6---R
7---R
8---R
Just point me in the right direction, its homework. Thanks.
Last edited on
just basically wondering how to start it.
Can you show the code that creates that vector?
do you have to parse < (2,c) (4,T) (3,R) > and then generate a vector.
maybe i don't understand the problem exactly but this is how i did it.
http://cpp.sh/8hie
Last edited on
Basically just what you have but the array should be dynamic. You shouldn't have to input the contents like you did.