How can I declare a letter into a vector of chars?

ie.
1
2
3
4
5
6
7
8
9
int count;
vector<char> myVect(10); //Lets assume that the numbers 1-10 are stored in here;
for(count=0;count<10;count++)
{
    if(myVect[count]==3)
    {
    ... //What code would go here to replace it with a "T";
    }
}
closed account (4z0M4iN6)
Sorry, don't understand so much about vector. In such simple cases I always used an array
Please help. I need the code by 10
Go look up how a vector works in the reference section; you should find the answer pretty easily.
Erm...

myVect[count] = 'T' ;

?
Oh my bad i was using double quotes
Topic archived. No new replies allowed.