jonsca commented: That just about says it +8
frogboy77 73 Posting Pro in Training
frogboy77 73 Posting Pro in Training
frogboy77 73 Posting Pro in Training
He could probably bluff the bad code as his own though.;)
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.
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.
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).
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.
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.
Does charm and wit a good president make? (or just a popular one)
That's not the point. I don't want one for performance, more the nostalgia. It just looks the business.
google "getline"
Don't stop helping, i haven't seen a rant like this in ages.:twisted::D
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
try goggling "Gaussian elimination".
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.
you need to go back to your notes. this is all wrong.
Come on, this is reality.
You would never have guessed.
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.
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).
Are the big eyes an aspiration or an identity crisis?
I was expecting your answer to be more along the lines of "When you stop wearing nappies and suckling your mother's tit".
I usually find the staff helpful, intelligent, patient, well trained, masters of the English language and extremely professional.
Solid, Liquid, Gas, and perhaps Liquid Crystal. That's me done.
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?
Yes I know you wasn't referring to me.
Are you trying to be hip?
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).
Scaring away the birds pecking holes in the aforementioned milk bottles.
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.
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.
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??
Probably not, but the visits get more and more frequent.
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.
What did you expect to get, and what did you get?
Julius Robert Oppenheimer
Now, I am become Death, the destroyer of worlds.
Poor guy, how could he have known?
I'm guessing you've never had a job. Hell, are you kidding me?
Even after all that help it's still "do it for me"?
I can dance in my lounge for free, and look like an idiot (not very often), why would i pay for the privilege?
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).
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.
The article I linked to was not a rant,
that Torvalds made in his epic rant
Is this a contradiction or sarcasm?
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).
Vernon was right about you.
I'll see what i can do.