I'd like to remplace every 'c' in my char array into 'a'
did something like
how can i do so? sorry for my newbienessCode:while(*str!='\0') { if(*str=='c') //thought i could do *str='a' but i guess i cannot *str++; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 10 of 10
Threaded View
|
Click Here to Expand Forum to Full Width |