
-----------------------------------
unoho
Wed Mar 30, 2011 4:29 pm

char to string
-----------------------------------
hey guys im trying to make a program that will encrypt text. my first step is to alter the text.
for example, if i have "hello" as key, im trying to make it "ifmmp"... like every character should add 1. but it's not working for some reason. any idea wht might be wrong with it?
[code]
int encrypt(string key){

    for (int i =0;i