sir i want to calculate the number of the character in a string without strlen and without string function.
If am not wrong your question is how to find the position of a character in string?
cout<<"Enter the input string";
cin .getline(a,80,'\n');// takes the input string till enter is hit.
cout<<"Enter the character for which the number needs to be found:";
if(a[i] == ch)
cout<<"the character is"<<ch<<"and"<<"the number is "<<i;
does this answer your question? If not please rivert back.