Help me plz!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me plz!!

Why more letters are pissed, although the introduction of the letters were not done https://code.sololearn.com/cnl2ZufY9qs5/?ref=app

3rd Feb 2018, 7:38 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar
8 Answers
+ 4
it is because you are asking for input in the loop. just remove the cin>>c[x] and correct the code like .. cin>>c; for (int x=0; c[x]!='\0' && x<26; x++) { ..
3rd Feb 2018, 7:54 PM
Saminjay Goel
Saminjay Goel - avatar
+ 5
The way the code playground works is: - you get prompted for all the input your program needs, - your input meets your code on a server to run, - your program finishes or is stopped due to using allotted time, and - the output is sent back to you to display. Your code is wrong. c[0] to c[25] are valid array references not c[26].
3rd Feb 2018, 7:54 PM
John Wells
John Wells - avatar
+ 3
I didn't understand your question, What do you mean by letters are pissed. And if this code's purpose is to just tell the no. of the character entered then it is done wrong.
3rd Feb 2018, 7:44 PM
Saminjay Goel
Saminjay Goel - avatar
+ 2
the meaning of the code is that the letters are coded as numerals, and the answer is displayed
3rd Feb 2018, 7:47 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar
+ 2
but for some reason those letters that I do not enter are also output, and I do not understand the reason
3rd Feb 2018, 7:48 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar
+ 2
sorry for pissed letters, foolish translator (I'm from russia)
3rd Feb 2018, 7:50 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar
+ 1
please help me, guys
3rd Feb 2018, 7:43 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar
0
great thnx <3
3rd Feb 2018, 7:54 PM
₩Ìkīpędįã
₩Ìkīpędįã - avatar