Author Topic: Need Help  (Read 7061 times)

Offline Franciswalser

  • Jr. Member
  • *
  • Posts: 7
Need Help
« on: February 17, 2023, 11:12:15 AM »
I want to do the following, let's say we have a string called A and it contains 'echo Hello, World!' I want to do this: reverse A, now it is '!dlrow ,elloH ohce' remove the last 5 chars, so it is '!dlrow, elloH' reverse A, so it is 'Hello, World!' and output A, because the user inputted A in the first place in a, it is for a command prompt, so that is why the echo is there. I can do the reversing, but I can't seem to figure out how to remove the last 5 chars from the string.. does anyone know how to do this? It is bare bones (no int21h) and Bits 16. my account access
« Last Edit: February 20, 2023, 05:27:17 AM by Franciswalser »

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 224
  • Country: gb
    • GPUZoo
Re: Need Help
« Reply #1 on: February 17, 2023, 09:07:58 PM »
Please post what you have tried already, so we're not just doing your homework for you.
My graphics card database: www.gpuzoo.com