frogboy77 73 Posting Pro in Training

I am becoming annoyed at the amount of responses on this site saying (something along the lines of) "This thread is 5 years old, please leave it alone.".

Then there is often the response (again, something along the lines of) "Please search the site before asking a question that has already been answered.".

Surely updating an old post regardless of the period of time since the original post, will help anyone searching the site to find the required information without starting a new thread (making the search quicker for the next person i.e less hits).

Does anyone else agree or am I out on my own here?

happygeek commented: agreed +0

frogboy77 73

so convert everything to cents
multiply up by 100 convert to int, use %, then convert results back to double

WaltP commented: Exactly! +17

frogboy77 73

ok so number =3145
you need a nested loop so you can check pos1vpos2 pos1vpos3 pos1vpos4 pos2vpos3 etc...(or work back from pos4vpos3 doesn't matter)
(google bubble sort if you need to)
then you need to isolate the 2 numbers into variables, say a and b
i started my outer loop with i=length-1 and decremented i.
so a=num/pow(10.0,i)
a=(int)a%10
the 2 lines are because pow requires pow(double,int). got some compiler warnings with this.(I told you it was ugly)
inner loop starts at j=i-1
so b= same as above but with j not i.
now you have the 2 numbers to compare
if they need to be swapped then take them away from number ie number-=3000,number-=100 then add back in number+=1000, number+=300 (leave that code to you)

easterbunny commented: well written and usefull +1

frogboy77 73

frogboy77 73

line 21 change poolsize to volume

Aghtar commented: ty +1

frogboy77 73

1 see edit.
2 str.length() will give you the length of the string called str. You have no such string.

  1. google.

frogboy77 73

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

sergent commented: lol +0

frogboy77 73

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.

frogboy77 73

Man up, when you're dead you're dead. Accept it. It will be lonely, it will be unpleasant, but it will happen. Take solace in the fact that you affected at least one other human being in a positive way. If you didn't, at this point it makes no real difference so don't worry about that either.
If i'm wrong (just possible), then if this is the system designed by a guy whom i am in the image of, then i really can do nothing he wouldn't do, therefor i qualify automatically.
I win.

Portgas D. Ace commented: Spot on +0

frogboy77 73

I would consider making 2201 posts in 2 months an obsession or something more malicious. (i.e spammer or very lonely person)

jingda commented: Good guess but wrong +0

frogboy77 73

The search for his Mac or listening to him tell you about it?

Nick Evan commented: :) +0

frogboy77 73

I watched every second. I am never prouder than the occasions where i partly finance an event for people i don't know or will probably ever meet. Proud to be British.

Nick Evan commented: Haha +0

frogboy77 73

The price is not astronomical and the performance would probably do for most people, and as a child of the 80's it makes me feel like a kid again.

frogboy77 73 Posting Pro in Training

Nick Evan commented: sweet! +0

frogboy77 73

Julius Robert Oppenheimer

[QUOTE]Now, I am become Death, the destroyer of worlds.[/QUOTE]

Poor guy, how could he have known?

frogboy77 73

Does anyone actually know what the question is? Does the OP?

frogboy77 73

Being a caring person who wants to help does not negate being an idiot.
I work very hard for my money and give regularly to a number of charities, but i try to do as much research into how much of my money will make it to the people i am trying to help before i donate.

frogboy77 73

@ardav
I think you are great and i tell everyone all the time (at DW and everywhere else).

frogboy77 73

Scotland should be treated with the disdain it deserves. Send out the under 16s and the over 40s and i fear we would still lose.

happygeek commented: biggest ROFL of the day so far +0

frogboy77 73

AndreRet commented: Wow! +0

frogboy77 73

That is a statement not a question.

frogboy77 73

line 11 cout << secondary

Climber Ty commented: Thanks! +1

frogboy77 73

[QUOTE]Dev-C++ is [B]updated frequently [/B]and includes all of the library's you will probably ever use (using the new standards) [/QUOTE]

[URL="http://en.wikipedia.org/wiki/Dev-C%2B%2B"]http://en.wikipedia.org/wiki/Dev-C%2B%2B[/URL]

jonsca commented: True +6

frogboy77 73

Does your compiler not have a problem with line 16(i.e declaring a variable twice)?

frogboy77 73

If you want any help (and you do from the above poster) then an amount of effort shown really is required.

frogboy77 73

If room 5 doesn't exist the home may smell rather "funky".

Lighting would be the least of your problems.

frogboy77 73

a+=b;

is equivalent to

a=a+b;

frogboy77 73

Sorry Diophantine equations are beyond me. Perhaps you should try a math forum for more advice, then come here for help with the coding.

frogboy77 73

1,132,345,679 exactly at time of posting.

P.S my wife's computer just blew up so subtract 1.

frogboy77 73

no problem you can have my old one but it is buyer uplift only.

EAnder commented: even a crappy computer from the 90s is decent enough to code on +0