+ 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
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++) {
..
+ 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].
+ 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.
+ 2
the meaning of the code is that the letters are coded as numerals, and the answer is displayed
+ 2
but for some reason those letters that I do not enter are also output, and I do not understand the reason
+ 2
sorry for pissed letters, foolish translator (I'm from russia)
+ 1
please help me, guys
0
great thnx <3