244 Posted Topics
Re: Why the { on line 27? What if n%10=1? i.e n=11 or 21? EDIT Beat me to that Nick:) I have also been led to believe goto is BAD. A while or do while loop may be better. | |
Re: I think this is what you need. [URL="http://www.daniweb.com/software-development/cpp/threads/78223"]here[/URL] | |
| |
Re: I think he is referring to [URL="http://en.wikipedia.org/wiki/Letter_frequency"]this[/URL]. | |
Re: [QUOTE]If you're like me and enjoy Steam's service (not having to mess with DVDs and CDs),[/QUOTE] [URL="http://www.bbc.co.uk/news/technology-15690187"]http://www.bbc.co.uk/news/technology-15690187[/URL] | |
Re: Well it is difficult to kill 127 of one's schoolmates without one. DUH. | |
![]() | Re: You're in over your head. Get a book and start reading. :) |
Re: 1 Where are your #includes and namespace? 2 What is str.length (why would that give you the size of k)? 3 Where is your output line? EDIT If this is a snippet ignore 1, if not you need to check your braces and there is no return statement. | |
Re: [QUOTE]I a still confused, maybe I am looking too much into it, but I am so lost. Please someone help me.[/QUOTE] No what you mean to say is "Please someone do it for me." Much more precise. (see i have already helped) | |
Re: It is repeating the loop. Try a couple of cout lines to find out where you're going wrong(ie right before line 21). | |
Re: works fine for me with the mentioned changes | |
| |
Re: I doubt she's going to do everything for you. Unless she's in a really really really good mood. | |
Re: you could try [CODE]srand(time(NULL));[/CODE] worked in the past for me but hey i'm not good at this so "pinch of salt". | |
Re: line 3 remove the .h line 38 remove the void | |
English rioting for no apparent political reason, more a case of get what you can while the going is good. Does it get much worse than [URL="http://www.bbc.co.uk/news/magazine-14487982"]this[/URL]? Is society really broken? | |
Re: I didn't realise there was an age limit. Could you let me know what it is. I'm 3 years old by the way. | |
Re: [QUOTE]I don't do graphics. My expertise is in back-end development.[/QUOTE] [URL="http://www.transforminglives.co.uk/buttock-implants.html?incoming=googlead&gclid=CLLYiMzrgasCFeYmtAodpFf70g"]Like this?[/URL] | |
Re: [QUOTE]42% of Brits have not sent a snail mail letter in the last six month[/QUOTE] that would have been true for me before email [QUOTE]51% of British workers would rather send an email than pick up the phone to a colleague, whereas only 24% would do the rather do the … | |
Re: you are replacing tmp every time you compare 2 values. ie on the very last check if person[9]>person[8](or nine in this case, checking against itself) you replace the value. this doesn't mean it was the biggest of all. one loop should be sufficient for this task. | |
Re: I doubt anyone will help you without some sign you have attempted the problem yourself. Even if someone were so charitable (i.e stupid) your description of the problem is a little vague. Go away make an effort and come back with a specific problem. | |
![]() | ![]() |
At what point does conciseness become more important than readability, or vice-versa (given that there is no difference in performance)? Is there an element of snobbery amongst programmers to certain techniques or are certain things just purely bad practice? |
The End.