My FINAL vector question?

Hey once again! My final question regarding vectors pertains to formatting an individual index. The vector in question contains 'char' values (one in each index) that were specifically input by the user. Therefore, it is unknown what character is actually in each index. What I would like to do, is access a specific index, and replace its contents with the same character, but with a 'bold' formatting. For example:

If the index has the value "a," then I want to replace its contents as:

a -> a

Unfortunately, I do not actually know whether the char value is "a," or a different character.

Could anyone explain how to do this?
Last edited on
1
2
3
4
vector<char> input;
//get input
if(input[x]=='a'){
    /*do stuff*/}

?

I'm not really sure what you mean...
Last edited on
I want to take the character that is stored in a specific index and make it bold. That way, when the contents of the vector are outputted, specific indexes will appear bold, while others don't.
Topic archived. No new replies allowed.