Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Closed Thread
 
Thread Tools Display Modes
Old Feb 15th, 2005, 4:10 PM   #11
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Quote:
Screw you, I got a new compiler, which probably beats everyone's here
Easy there tonto. This isn't a pissing match. All compilers work the same. They just have different options etc. If your looking for a flame war over compilers, please go somewhere else....we don't tolerate people that flame on this board. This is a site of learning and mind expansion.

Like Hockeyman said:
Quote:
a) You highjacked a thread to ask a question, you got two answers within a day. That's nothing to complain about.
b) When you ask a question, you are hoping that someone will take the time out of their own busy lives to anwser you. Try to remember that it isn't mandatory that anyone here takes that time, and the more attitude you toss around, the less likely it is that someone actually will.

nuff said.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline  
Old Feb 15th, 2005, 4:10 PM   #12
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Quote:
Originally Posted by gardon
Screw you, I got a new compiler, which probably beats everyone's here, and I didn't know what the new variation of iostream was.

Isn't the point of asking questions to find answers? it was a 2 second answer.
Why the random outburst, Gardon?
__________________
&quot;Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children.&quot; - Dwight D. Eisenhower
Mjordan2nd is offline  
Old Feb 15th, 2005, 4:52 PM   #13
gardon
Programmer
 
Join Date: Dec 2004
Posts: 87
Rep Power: 4 gardon is on a distinguished road
look at ooble's post on my <iostream.h> question
gardon is offline  
Old Feb 15th, 2005, 4:54 PM   #14
gardon
Programmer
 
Join Date: Dec 2004
Posts: 87
Rep Power: 4 gardon is on a distinguished road
Sorry everyone, I took it the wrong way, I retract my last few statements
gardon is offline  
Old Feb 15th, 2005, 5:57 PM   #15
Option_Explicit
Programmer
 
Join Date: Dec 2004
Posts: 31
Rep Power: 0 Option_Explicit is on a distinguished road
-All compilers work the same-

Nuh uh. What if the Compiler doesn't work at all? :-)
Option_Explicit is offline  
Old Feb 16th, 2005, 4:32 AM   #16
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
doesn't that defaeat your question cause if the compiler isnt working then, its not a compiler its just a uselss program .
Berto is offline  
Old Feb 16th, 2005, 5:11 PM   #17
Option_Explicit
Programmer
 
Join Date: Dec 2004
Posts: 31
Rep Power: 0 Option_Explicit is on a distinguished road
It would still be a compiler, it just wouldn't work. When the servers go down on MMO's, the game is still considered a game even though it isn't operational. It's all about your intentions. :-D
Option_Explicit is offline  
Old Feb 16th, 2005, 5:35 PM   #18
Hockeyman
Programmer
 
Hockeyman's Avatar
 
Join Date: Jan 2005
Location: Vancouver, Canada
Posts: 60
Rep Power: 4 Hockeyman is on a distinguished road
Send a message via MSN to Hockeyman
[humour]
I disagree - I have a rusting lump of metal in my garage that used to be a car, but now is a storage area for somewhat smelly hockey gear .
What defines a car the the capability to convey someone from point A to point B by the combustion of fossil fuels (or other hybrid fuel technologies).
What defines a hockey gear storage area is it's ability to store smelly hockey gear (and not melt/spontaneously combust/throw up :eek: ).
It no longer has the capability of conveying me from point A to B, thus it is not a car. It DOES have the capability of storing smelling hockey gear, therefore it is a hockey gear storage area.

What defines a compiler is its ability to convert lines of code written by the programmer in to machine-executable commands. If it can't do that, it's just a waste of memory space

And if it's all about the intentions, then all bow down before me for I am the Master Code Guru of the Universe, the foremost genius of code, the programmer whom all programmers emulate and hope to one day achieve a glimmering of my ineffable talents :p
[/humour]
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~


Last edited by Hockeyman; Feb 16th, 2005 at 6:27 PM. Reason: --added more silliness for effect--
Hockeyman is offline  
Old Feb 16th, 2005, 5:36 PM   #19
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
That made me laugh. Which is a bad thing, because I'm supposed to be asleep.
__________________
Me :: You :: Them
Ooble is offline  
Old Feb 16th, 2005, 8:09 PM   #20
Xero
Hobbyist Programmer
 
Join Date: Dec 2004
Location: a cardboard box
Posts: 118
Rep Power: 4 Xero is on a distinguished road
Quote:
Originally Posted by breskoad
I have to write a program and i'm lost. I have to use C++ and have a program that does the following.

What's your name? Andrew

How many pennies do you have Nancy? 77

How many nickels do you have Andrew? 30

How many dimes do you have Andrew? 2

How many quarters do you have Andrew? 5

====================================================
Andrew's Net Worth
====================================================
Dollars : 3
Change : 72
====================================================

Your program should use the following values 45 pennies, 27 nickels, 15 dimes and 7 quarters.

It's for a sample class i'm taking, not necessarily homework. Any chance someone could code a program like that for me so i can see how it is done. Its a sample from my C++ book and i can't figure it out even though i've tried NUMEROUS codes. It takes your name input and then asks you how much change you have in forms of quarters, nickels, dimes, and pennies then calculates it into a dollar amount with remaining change.

Can anyone give me a hand? Possibly show me the code for it?
Umm thats such bull. If its a sample from a book, they're most likely going to have some sort of explaination. They would just put an example in a book and do nothing. So I think believe its homework, and I dont see how it could be that much trouble if you actually read the book. Its only a few simple concepts. Heres a hint... Look up "cout", "cin", "local varaiables", and "simple arthmatic"

Anyways Ill write your program for you, mainly because Im not a jerk like these other guys and Im possibly the nicest person you'll ever meet that will help you since you didn't post a sample of yours. If those are the only required inputs then this program should work flawlessly:

#include <iostream>
using namespace std;

int main ()
{
     cout << "What's your name? Andrew\n";
     cout << "How many pennies do you have Nancy? 77 \n";
     cout << "How many nickels do you have Andrew? 30 \n";
     cout << "How many dimes do you have Andrew? 2 \n";
     cout << "How many quarters do you have Andrew? 5 \n";
     cout << "======================================= \n";
     cout << "Andrew's Net Worth \n";
     cout << "======================================= \n";
     cout << "Dollars : 3 \n";
     cout << "Change : 72 \n";
     cout << "======================================= \n";

return 0;
}
__________________
...

Last edited by Xero; Feb 16th, 2005 at 8:13 PM.
Xero is offline  
Closed Thread

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:15 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC