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 Posting Pro in Training

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 Posting Pro in Training

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 Posting Pro in Training

I think this is what you need. here

frogboy77 73 Posting Pro in Training

line 21 change poolsize to volume

Aghtar commented: ty +1
frogboy77 73 Posting Pro in Training

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

frogboy77 73 Posting Pro in Training

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

sergent commented: lol +0
frogboy77 73 Posting Pro in Training

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 Posting Pro in Training

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 Posting Pro in Training

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 Posting Pro in Training

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

Nick Evan commented: :) +0
frogboy77 73 Posting Pro in Training

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 Posting Pro in Training

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

I have got to get one of these.:icon_cool:

Nick Evan commented: sweet! +0
frogboy77 73 Posting Pro in Training

Julius Robert Oppenheimer

Now, I am become Death, the destroyer of worlds.

Poor guy, how could he have known?

frogboy77 73 Posting Pro in Training

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

frogboy77 73 Posting Pro in Training

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 Posting Pro in Training

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

frogboy77 73 Posting Pro in Training

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 Posting Pro in Training
AndreRet commented: Wow! +0
frogboy77 73 Posting Pro in Training

That is a statement not a question.

frogboy77 73 Posting Pro in Training

line 11 cout << secondary

Climber Ty commented: Thanks! +1
frogboy77 73 Posting Pro in Training

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

http://en.wikipedia.org/wiki/Dev-C%2B%2B

jonsca commented: True +6
frogboy77 73 Posting Pro in Training

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

frogboy77 73 Posting Pro in Training

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

frogboy77 73 Posting Pro in Training

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

Lighting would be the least of your problems.

frogboy77 73 Posting Pro in Training

a+=b;

is equivalent to

a=a+b;

frogboy77 73 Posting Pro in Training

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 Posting Pro in Training

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

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

frogboy77 73 Posting Pro in Training

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
frogboy77 73 Posting Pro in Training

1. What is the problem?
2. Code tags code tags code tags.

frogboy77 73 Posting Pro in Training

Would a loop where you take mod 10 then divide by ten work?
i.e

while(num>0)
{//some code to add to the stack num%10
num/=10;}
thelamb commented: yupp +3
frogboy77 73 Posting Pro in Training

can't say for the recursive version but for the iterative one you could put an if statement in the loop to see if the MAX value(for data type) divided by the next term to be multiplied is less than your running total then this would overflow the range of your data type, so break the program there and output the last value.:)

i.e

if(MAX/N<total){break;}

cout<<N;
frogboy77 73 Posting Pro in Training

don't really get your code as i'm a total noob but

if ( ( npx - opx !== 2 && -2 || npy - opy !== 1 && -1 ) && (npx-opx !== 1 && -1 || npy-opy !== 2 && -2) )

should these !== not be just != ?
may be completely wrong though.

Ancient Dragon commented: you are right :) +34
ccube921 commented: awesomeness +3
frogboy77 73 Posting Pro in Training

line 9 should read
for(index=0; index < strlen(pointer); index++)
P.S. am just learning to program so this might be wrong

Valaraukar commented: Good start for a new programmer :) +2