For example, if I introduce hello, the program through the ASCII table will return the same but character 7 letters forward: 'hello' -> 'olssu'. Thanks in advance. I have tried this but it obviously doesn't work:
#include <iostream>
using namespace std;
int main()
{
int asciiValue=65;
string pass;
cout<<"introduce la contraseña"<<endl;
cin>>pass;
char character = char(asciiValue+7);
for(int a=0;a<pass.length();a++){
cout<<character;
cout<<pass[a];
}
return 0;
}