244 Posted Topics

Member Avatar for amgad habeeb
Member Avatar for PrimePackster

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.

Member Avatar for Fbody
0
354
Member Avatar for armaan ali

I think this is what you need. [URL="http://www.daniweb.com/software-development/cpp/threads/78223"]here[/URL]

Member Avatar for frogboy77
0
309
Member Avatar for Aghtar
Member Avatar for spar
Member Avatar for seraphina
Member Avatar for phorce

I think he is referring to [URL="http://en.wikipedia.org/wiki/Letter_frequency"]this[/URL].

Member Avatar for frogboy77
0
153
Member Avatar for pseudorandom21

[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]

Member Avatar for frogboy77
0
182
Member Avatar for skylinedrifter
Member Avatar for GrimJack

Well it is difficult to kill 127 of one's schoolmates without one. DUH.

Member Avatar for pseudorandom21
0
467
Member Avatar for cwarn23
Member Avatar for Ancient Dragon
Member Avatar for TheFearful
Member Avatar for raptr_dflo
0
336
Member Avatar for myrongainz

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.

Member Avatar for myrongainz
0
619
Member Avatar for New4lyfe

[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)

Member Avatar for New4lyfe
0
184
Member Avatar for crane476

It is repeating the loop. Try a couple of cout lines to find out where you're going wrong(ie right before line 21).

Member Avatar for crane476
0
109
Member Avatar for JuloF26
Member Avatar for sergent
Member Avatar for AliTheChamp
0
329
Member Avatar for Max Hydes

I doubt she's going to do everything for you. Unless she's in a really really really good mood.

Member Avatar for Max Hydes
0
894
Member Avatar for dragon_chick

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".

Member Avatar for dragon_chick
0
412
Member Avatar for Info_stealth13
Member Avatar for zendet
Member Avatar for frogboy77

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?

Member Avatar for pseudorandom21
0
422
Member Avatar for c++creator

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.

Member Avatar for frogboy77
0
563
Member Avatar for Onlineshade

[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]

Member Avatar for m4ster_r0shi
0
164
Member Avatar for happygeek

[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 …

Member Avatar for GrimJack
1
4K
Member Avatar for Martin C++

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.

Member Avatar for frogboy77
0
208
Member Avatar for Tommy Mayor

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.

Member Avatar for frogboy77
0
57
Member Avatar for iamthwee
Member Avatar for frogboy77

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?

Member Avatar for BitBlt
0
91

The End.