hey guys umm this might seem really stupid but for reasons i would rather leave unsaid i want to make an encryption program and by this i mean a program that will turn a string into numbers and funnel into a file then when selected take the contents of the file and turn it back into a string then printed.

now i have most of this down, all of it, really but i dont know how to select multiple characters in a string.

like string r = "hello"; if you want to print the h you say

cout << r[0];

but what if i wanted to print the h and the e?

8 Years
Discussion Span
Last Post by Brandon515
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.