hi everone, i have a problem to sum all the ascii that converted from the name.
if possible can someone show as funtion.
can anyone please show me the step please
appreciate alot..Code:#include <iostream> #include <cstdlib> #include <cstring> #include <cctype> using namespace std; int main() { string name; int sum = 0; //prompt user input cout<<"Please enter your name to generate password: "; cin>>name; for(int i=0; name[i]; i++) { cout<<int (name[i])<<endl; } system("pause"); return 0; }