Friday, 24 June 2011

Raptor and reversing a sting???


i have submit code class design program prompts user enter string , displays string contents backward. instance, if user entered "gravity" program should display "ytivarg." have python code done. reverse word used, word = raw_input, print word [::-1]. can not figure out how make work in raptor. don't know language use make reverse string. appreciated assignment due tonight! thanks!!
 

first off, python 'cheats' @ because can in python doesn't mean you've mastered concept of reversing string. languages don't have built in function without thinking it.

secondly, 'raptor' can find kind of flow chart language seems can't right.

edit: 'raptor' you're referring to. need think of required reverse string. 1 way use concept of stack or recursion. way use built in string language constructs prepend strings if available.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment