A program using C++ and only include iostream .Shortly before the programming contest started, Bjarki decided to update
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A program using C++ and only include iostream .Shortly before the programming contest started, Bjarki decided to update
A program using C++ and only include iostream .Shortly beforethe programming contest started, Bjarki decided to update hiscomputer. He didn’t notice anything strange until he started codingin his favorite editor, Bim (Bjarki IMproved). Usually when he’swriting in an editor and presses the backspace key a singlecharacter is erased to the left. But after the update pressing thatkey outputs the character <. He’s tested all the editors on hismachine, Bmacs, Neobim, bjedit, NoteBjad++ and Subjark Text, butthey all seem to have the same problem. He doesn’t have time tosearch the web for a solution and instead decides to temporarilycircumvent the issue with a simple program. Help Bjarki write aprogram that takes as input the string that was written in the texteditor, and outputs the string as Bjarki intended to write it. Youcan assume that Bjarki never intended to write the character <,and that Bjarki never pressed the backspace key in an emptyline.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!