split and for loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomatomato
    New Member
    • Oct 2008
    • 2

    split and for loop

    Let's say there is a menu (basically a list) and I am trying to make a search bar for that menu. Whatever the user types in (such as "sidedish" or "chicken burger"), the program has to print whatever items they have on the menu that has those keywords in it. How do I go about doing this using split and the for loop?
  • Smygis
    New Member
    • Jun 2007
    • 126

    #2
    It sounds a lot like a school assignment.

    And your question is so basic i can only tell you to read the documentation for split and for-loops. Ether you want to program or you don't. If you don't, don't even bother.

    Comment

    • tomatomato
      New Member
      • Oct 2008
      • 2

      #3
      I don't want to program but I'm forced to so what choice do I have and I'm asking for help on it, I'm not asking someone to do it for me hence not giving the entire assignment away. I believe I explain this pretty clearly. Either you understand it or don't. If you don't, don't even bother.

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Originally posted by tomatomato
        ...I'm not asking someone to do it for me hence not giving the entire assignment away...
        Asking basic questions and saying "How do I go about doing this" amounts to asking for it to be done for you.

        How about you tell our experts what your specific problems are, rather than a general how-do-I-do-it question. Include some relevant code (not your whole program, just the parts relevant to the question); something that you've tried, and isn't working. Then the experts can help you figure out what's wrong with it.

        I'll also ask both of you to remain civil on this forum. Remember that this is a forum for and full of professionals.

        MODERATOR

        Comment

        Working...