Jump to content

Converting string to char variables?

Rossyboy

Hi all,

 

I'm learning C++ and creating a number of short programs in the Windows console window. I would like to create a program which takes an input word and splits is into char variables and then performs an action on each number and then makes it back into a string / word, like encryption. I know how use string variables from <string> in my IDE but I'm unsure how to convert a word into char variables. If someone with more experience could lend me a hand here that would be great.

 

Thanks,

 

Rossyboy

Link to comment
Share on other sites

Link to post
Share on other sites

Thank you so much! I get it now, excited about this one! 

And sorry about being so nooby its just when you're starting out all the information can be a little overwhelming :/ 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×