hey , if i wanna write this code by " while" loop , what the steps to do that ??
#include<iostream.h>
char *TESTmarks(char *t){
char marks [] = {'.',';',':','!',',','?'};
char *newm=new char [strlen(t)];
for( int i = 0;i<strlen(t);i++)
{
for(int k = 0;k<=7 ;k++)
{
if(t[i] == marks[k])
t[i] = ' ';
}
}
return t;
}
main()
{
char t[50];
cin>>t;
cout<<TESTmarks(t);
}