Camel Casing

Can i get help doing a function that, given a string with the name of a function, returns a new string with the name converted from underscore-separated style to camel case style. For example, if your function receives the string my_char_at() it should return myCharAt(). Use your function in a program. Any help will be considered helpful, Thank You.
What are you having trouble with? We won't just do your homework questions for you.
One method would be to use std::getline with a delimiter of '_' then just append the next word with an uppercase first letter toupper

*fixed code tags
Last edited on
Topic archived. No new replies allowed.