frogboy77 73 Posting Pro in Training
frogboy77 73 Posting Pro in Training

He could probably bluff the bad code as his own though.;)

frogboy77 73 Posting Pro in Training

I recommend running some tests to find out where the code is going wrong (some simple cout commands may suffice), then post the appropriate piece of code that is causing the problem. There are some here who may go through all those lines of code to find your error, but not many.

On top of that i would also post the expected output and what you are getting, as a clue to where the problem lies.

frogboy77 73 Posting Pro in Training

Not really.

Washington: My teeth have fallen out.
Doctor: I'm afraid there is nothing we can do sir.
Washington: Bugger that i'm going out for steak tonight, not sodding soup, and nothing's going to stop me. Go down to the lumber yard and get me some hardwood. I've got an idea.

Freak me out? No. Scare the crap out of me? Perhaps. A days of yore 007 villain.

frogboy77 73 Posting Pro in Training

Anyone who makes it to the upper echelons of politics should be feared and despised(in equal measure). The money's not the best and i don't believe for a second they are there for the good of the the people, so there has to be another reason. It's probably ________ (you can fill in the blank).

frogboy77 73 Posting Pro in Training

I think he should have been able to figure that out from the hints provided. If not then there is no point in telling him.

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

No doubt, the easiest language to write a compiler for is Brainf*ck. Writing an interpreter for this language is probably gonna require less lines of code that the "Hello World" program in Brainf*ck.

That's pretty strange. Then again so is this.

frogboy77 73 Posting Pro in Training

Does charm and wit a good president make? (or just a popular one)

frogboy77 73 Posting Pro in Training

That's not the point. I don't want one for performance, more the nostalgia. It just looks the business.

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

I doubt it.

frogboy77 73 Posting Pro in Training

google "getline"

frogboy77 73 Posting Pro in Training

Don't stop helping, i haven't seen a rant like this in ages.:twisted::D

frogboy77 73 Posting Pro in Training

Repost using code tags and someone will probably take a look otherwise they'll just ignore it as it is too hard to read.
my previous post related to the spelling

frogboy77 73 Posting Pro in Training

try goggling "Gaussian elimination".

frogboy77 73 Posting Pro in Training

never mind the code i don't get the question. what if b=150 and a=299?
this is starting to look like a car crash.

frogboy77 73 Posting Pro in Training

you need to go back to your notes. this is all wrong.

jonsca commented: That just about says it +8
frogboy77 73 Posting Pro in Training

Come on, this is reality.

You would never have guessed.

frogboy77 73 Posting Pro in Training

My tongue is in my cheek because i'm trying to remove a piece of 100% beef (probably fillet or sirloin) from my recently eaten big mac.

frogboy77 73 Posting Pro in Training

The day they interrupt my mortgage payments then i'll give a sh*t. Until then who cares. If they're out there i hope they have good spaceship insurance (that's got to be a risky game).

frogboy77 73 Posting Pro in Training

Are the big eyes an aspiration or an identity crisis?

frogboy77 73 Posting Pro in Training

I was expecting your answer to be more along the lines of "When you stop wearing nappies and suckling your mother's tit".

frogboy77 73 Posting Pro in Training

I usually find the staff helpful, intelligent, patient, well trained, masters of the English language and extremely professional.

frogboy77 73 Posting Pro in Training

Solid, Liquid, Gas, and perhaps Liquid Crystal. That's me done.

frogboy77 73 Posting Pro in Training

Kind of my point. Are some people just right for the job? I have attempted to learn 3 musical instruments, became (at best) average on all 3 but had the underlying suspicion that i would never be good at any. We won't mention the dancing. The painting thing is only stick men, i don't even get the classics (looks like kids stuff). Now maths i like and seem to have an ability for (small may it be). Would this kind of mindset be helpful for a programmer? Or is an artistic flair required?

frogboy77 73 Posting Pro in Training

Yes I know you wasn't referring to me.

Are you trying to be hip?

frogboy77 73 Posting Pro in Training

edit

frogboy77 73 Posting Pro in Training
frogboy77 73 Posting Pro in Training

1. use code tags
2.

This is my first time writting aprogram

what happened to the hello world one?

Either this is your first program(doubtful) or it's not your's. If it's the latter then i doubt you'll get much help here.

Tip: try being honest and specific (works a treat).

frogboy77 73 Posting Pro in Training

Scaring away the birds pecking holes in the aforementioned milk bottles.

frogboy77 73 Posting Pro in Training

Or all chars.

frogboy77 73 Posting Pro in Training
frogboy77 73 Posting Pro in Training

A really bad solution (i think) would be create 2 vectors push all ints i.e if they are between 2 ASCII values into 1 then all chars, same again, into another, sort them, then use the 2 vectors to repopulate the array.
I think it would work but i imagine there is a far simpler and elegant way to do it.

frogboy77 73 Posting Pro in Training

I think on line 27 distKilo is undeclared in that scope. It is not global(and i wouldn't recommend that) so on line 13 it will always output0.0

more like

cout << "Total miles in kilometers is : " << calcKM(numMiles) << endl;

remove line 10
and declare distKilo as a double in your function.

frogboy77 73 Posting Pro in Training

or

#include <iostream>

using namespace std;
int readmiles( );
double calcKM(int numMiles);

int main( ) // calls readmiles & calcKM
{
int numMiles = 0;
double distKilo = 0.0;
numMiles = readmiles( );
calcKM(numMiles);
cout << "Total miles in kilometers is : " << distKilo << endl;
system("pause"); 
return 0;
}

int readmiles( ) //inputs number of miles
{
cout <<"Enter number of miles: ";
cin >> numMiles;
return numMiles;
}

double calcKM(int numMiles) // calculates miles into kilometers
{
distKilo = numMiles * 1.67;
return distKilo;
}

I think this would work. I don't know wether you would need to use void with readmiles??

frogboy77 73 Posting Pro in Training

It may not turn out as you expected.

frogboy77 73 Posting Pro in Training

Probably not, but the visits get more and more frequent.

frogboy77 73 Posting Pro in Training

An alternative might be to read them in main into a vector and pass the address of the vector to the functions as a second argument.

frogboy77 73 Posting Pro in Training

What did you expect to get, and what did you get?

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

I'm guessing you've never had a job. Hell, are you kidding me?

frogboy77 73 Posting Pro in Training

Even after all that help it's still "do it for me"?

frogboy77 73 Posting Pro in Training

I can dance in my lounge for free, and look like an idiot (not very often), why would i pay for the privilege?

frogboy77 73 Posting Pro in Training

wrong.
see this.
How is 3 a factor of 25.
@the OP ignore this nonsense.

frogboy77 73 Posting Pro in Training

You have a global variable N which you give no value, then you pass this to perfect with no declared value, then inside perfect you ask the user for a value of N.
This can't be good.
Also why call isfactor from main when it's being called from perfect.
I'm not to sure what to #include in programs but 2 out of 4 look unnecessary (not sure if the conio.h is for getch(),probably).

frogboy77 73 Posting Pro in Training
for (int index = 0; index > size ; index++)

This could be your issue.
Please use code tags, you will get more help.
For this to run size would have to have a negative value and as you increment index it will always be larger, so infinite loop.

frogboy77 73 Posting Pro in Training

The article I linked to was not a rant,

that Torvalds made in his epic rant

Is this a contradiction or sarcasm?

frogboy77 73 Posting Pro in Training

Is there a way of telling from a post (including my own) if someone just isn't cut out for programming?
For example a really simple piece of logic not being understood (as opposed to a lack of knowledge of the language).

frogboy77 73 Posting Pro in Training

Vernon was right about you.
I'll see what i can do.