By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

split and for loop

P: 2
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?
Oct 25 '08 #1
Share this Question
Share on Google+
3 Replies


Smygis
100+
P: 126
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.
Oct 26 '08 #2

P: 2
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.
Oct 26 '08 #3

Curtis Rutland
Expert 2.5K+
P: 3,256
...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
Oct 26 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.