Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:10:33+00:00 2026-05-25T14:10:33+00:00

I remember once in school we had the task of programming a marquee text

  • 0

I remember once in school we had the task of programming a marquee text in pascal, that is a text that moves from left to right. I also remember that I did not have the slightest clue how to do this. Nowadays I’m still not a good programmer, and wanted to ask you guys how you would do it – without any sort of libraries of course.

I thought of putting any letter in an array value and then for example every second move the array values one position to the right or something. Don’t know if thats a good “algorithm”.

What do you guys think?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:10:34+00:00Added an answer on May 25, 2026 at 2:10 pm

    For example in python I would do :

    >>> L='ABCDEFGH'
    >>> l=len(L)
    >>> i=0
    >>> while(i<20):
        print L[i%l:]+L[:i%l]
        i+=1
    

    You just move the starting letter from left to right (respecting the number of letters that’s why I take the modulo (%)) and you move the rest of the string on the other side.

    and you would get :

    ABCDEFGH
    BCDEFGHA
    CDEFGHAB
    DEFGHABC
    EFGHABCD
    FGHABCDE
    GHABCDEF
    HABCDEFG
    ABCDEFGH
    BCDEFGHA
    CDEFGHAB
    ...
    

    Hope I understood your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I once saw a framework or code from some PHP that had an error
I remember reading once that the order of the members of an evaluation is
I remember once i had temporary data used on a webpage. I used php
I remember having once seen a list of properties that could be set on
I remember reading once that there was a way to embed an image into
I remember once I found a nice online tutorial that showed how WPF works
I remember once visiting a website that would present a book/novel summary in the
I remember once reading that there were at least two other alternatives invented roughly
Once in a while, I notice some coding pattern that I've had for years
Hello I remember seeing once that either selenium or watin have a built in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.