i am trying to get the total value of a string for my encryption program but am only getting value of the first character of the string. here is my code
for(int c = 0; c<=password.length(); c++){
int add;
add = password[c];
pass = pass+add;
}
where pass is an int and password is string containing password.
please correct or show alternate code.
thanks!