Hi
Sorry for not posting the code yesterday.
Here it is
code
Code:
int main()
{
cout << endl;
char Name[50];
cout << "Please type in your name....: ";
cin.getline (Name, 50, '\n');
cout << endl;
cout << "You have typed.....:\t\a" << Name << endl;
cout << endl;
//********** Begining of the loop for the ASCII *********
//********** decimal equivalents *********
for (int i=0; i<256; i++)
{
if ((char)i==Name[50])
{
cout << Name << "," << i << endl;
}
}
cout << endl << endl;
cout << " Press any key if you want to quit!" << endl;
cin.ignore();
return 0;
}
The problem is that i can not make the loop work so i can change the letters to ascii decimal equivalents.
I know that that the loop is wrong but I can not find any solution.
Any suggestions?
See ya
Mazerius