CODINGAME: THE BROKEN EDITOR

Subscribers:
4,890
Published on ● Video Link: https://www.youtube.com/watch?v=UmzuK_xyAEY



Duration: 10:59
23 views
1


Replace the part that handles the keyboard inputs and build the output myself!

EXPLANATION CODE:
1) The code starts by declaring three variables: an integer called curs which represents the cursor position, and two strings called in and out.
2) After being requested by the user, a string is entered and stored into a variable in
3) Each character in the string is iterated through after the string has been received by the code. It employs a switch expression to carry out various operations based on the character. If the character is "left arrow sign" the cursor location is decreased. If the character is "right arrow sign," the cursor location is increased. If the character is a "-," the character immediately to the left of the pointer is deleted. If not, the character is inserted at the cursor location into the output string.
4) The output string is displayed to the console once all the characters have been analyzed.
#codingame #coding #game #programming #easy #difficulty #reading #arithmetic #cplusplus #cplusplusprogramming #learntocode #tutorial #education #problemsolving #algorithmic #asmr #asmrtyping #arrays #string #manipulation #the #broken #editor







Tags:
codingame
coding
game
programming
problem solving
problem
solving
algorithmic
reading
asmr
asmr typing
education
easy difficulty
easy
difficulty
tutorial
how to program
explanation
how to
string manipulation
string
manipulation
the broken editor
the
broken
editor
c plus plus
c plus plus programming
arrays