Display The String Backwards menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    Applellial's Avatar Corporal
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display The String Backwards

    Using a loop and the square-bracket [] notation to access each individual character in the string, display the string backwards (last character in the string first, next to last, etc). Remember that the character positions in a string are numbered starting with 0, so the first position in the string would be stringname[0], while the last position in the string would be stringname[stringname.length()-1]. Also remember that individual positions in a string can be referenced using integer variables, such as an integer counter for a loop that goes from stringname.length()-1 (the last position in the string) down to 0. please help!

    Display The String Backwards
  2. #2
    Anonie's Avatar Knight-Lieutenant
    Reputation
    58
    Join Date
    Nov 2010
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    char temp;
    int length = stringa.length();
    while length >= 0 {
    length --;
    temp = stringa[length];
    //do whatever you need to do with temp here
    }

    if you really need help with such an easy homework assignment, seriously consider another major. Or at least take a class in logic before continuing, the right logic class also fulfills some math requirements.

    Of course there's probably gonna be some syntax errors, since you didn't mention which language it is, and I haven't programmed in a few years. but fix those and you'd got your own dealie

Similar Threads

  1. Lua do most of the strings?
    By luciferc in forum WoW Memory Editing
    Replies: 23
    Last Post: 07-11-2009, 04:45 AM
  2. Display the level of your target?
    By 100100100 in forum World of Warcraft General
    Replies: 12
    Last Post: 01-10-2009, 11:23 AM
  3. How to find the Display ID's Of Alot of Weapons/items
    By C-Death in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 01-08-2008, 08:28 AM
  4. Where can I find the display ids of things that don't have object ids?
    By PiePirate in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-19-2007, 08:14 AM
All times are GMT -5. The time now is 02:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search