+ 1
Help please đđ
8 Respostas
+ 3
Most of the warnings you see upon running the code was triggered due to the use of assignment operator `=` where there should be equality comparison operator `==`
Somewhere in the long list of warnings, it also said there was either a missing or misplaced bracket. It was not really clear where, because it was in the line 75, where you crammed all the if...else if blocks.
I suggest to rewrite line 75 by breaking it into several lines, in a hope the missing/misplaced bracket can be easier to locate, as code readability improves..
(Edit)
OP had edited attached code.
+ 5
Now the code seems to work, some important hints:
1. Every time you start coding, spend more time thinking over logic than writing. How can you match each letter to its Morse code without such long stream of if's?
2. Get used to descriptive variable and function names. As code goes bigger and more complex, this visual aid does help.
+ 2
Thanks bro ... that was helpful
+ 2
Iamthekingherevaruna
OP = Original Poster
One who wrote and submitted the post ...
+ 1
Ipang what is OP ?
+ 1
Emerson Prado
I'll keep it in mind...
Thank you for this advice.â
+ 1
Ipang
I see now
Thx
0
Any solutions?