やあ、
Java で行うように、args[] パラメータを使用して文字列をコードに読み込もうとしています。基本的に、これは私がやりたいことです:
- read the String "machine" over launch-parameter
- go through every letter of that string in a loop
- while in the loop, check is current letter equals "e"
- if letter equals "e", replace it with "a"
- return edited string
これは、C に対する私の基本的な質問を表現する最良の方法です。ですから、この投稿を不快に思わないでいただければ幸いです。
そのコードをどのように実装できますか?