+ 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

29th Oct 2018, 2:39 PM
NipIsTrue
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.
29th Oct 2018, 7:41 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
ok thank you!
29th Oct 2018, 7:52 PM
NipIsTrue