+ 3
My pig Latin thing is being really weird
So my pig Latin thing is being extremely weird. Itâs just being weird. Take a look. Can someone please tell me whatâs wrong. https://code.sololearn.com/cBGMSXrHkN2Q/?ref=app
2 RĂ©ponses
+ 2
To help you troubleshoot:
18: int reetL = input.length();
19: char reet[reetL];
20: char firstLetter = input[0];
Add 1 to your length at line 18 (thinking: strings end with nulls).
Insert this at line 20:
for(int i=0; i<reetL; i++) reet[i]='!';
Then run the program to see what's happening now.
I think the last char should probably be a null ('\0') but this should get you started.
+ 1
ok thank you!