嗨,閱讀串過ARGS
我試圖通過ARGS []讀取一個字符串轉換成我的代碼 - 參數,就像我會用Java做的。 所以基本上,這就是我想做的事:
- 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元素問題,這樣我會很高興,如果你不會把這個帖子攻勢。
我該如何實現該代碼?
請問,你到目前爲止試過了什麼? – alk