How can I set the address to receive the coins I mined out?

It is too difficult to send the mined coins out from different address or is there a simple way to use the mining coin?

no difference between mined o received except you have to wait from immature to generated

./src/zcash-cli listtransactions

to si generated coin transaction

check from Protecting your Testcoins capter

Under modifications on the Mining Guide it mentions you can comment out 2 lines of code to use the same address for newly mined blocks. Does this work as expected or is there more setup to be done?

Thank you so much, I have modified it. I will check it after I find 2 more blocks.
I think it is better to set it in config file.