Sutekh's C++ +More Thread

Sutekh

Lord Nagafen Raider
7,487
105
Shawshank Redemption.

How many Traps has Sutekh Blown?
This Wakandan be mad

One tranny

Assume your car holds 12 gallons of gas and can travel 350 miles before refuling, write a program in C++ that caclculates the number of miles per gallon the car gets. Display the results on the screen.
Follow dem rules boys.
 

Adebisi

What a time to be alive
<Donors Crew>
25,384
37,055
15d 21h 32m
I haven't programmed since I was 10 or so and was fucking with nibbles on Qbasic.
why isn't my decimal showing? Sigh - I'm not good at this.

#include <iostream>

using namespace std;

int main()
{
double mpg;
mpg=350/12;
cout << "mpg: " << mpg << endl;
}
 

Adebisi

What a time to be alive
<Donors Crew>
25,384
37,055
15d 21h 32m
Welp, that's the most I've programmed in 16 years. Think Brad will hire me?
 

Sutekh

Lord Nagafen Raider
7,487
105
Because you keep antagonizing him and he finds it fun to make you angry.
 

Sutekh

Lord Nagafen Raider
7,487
105
I like that you think that.

Are your jimmies rustled?
You must be new around here.

I am literally the triumvirate.
Also Bisi it was failing because you didn't specify one of your values in the equation as a double. (mpg=350.0/12)
 

Sutekh

Lord Nagafen Raider
7,487
105
You went through an awful lot of trouble to be pretty unfunny.

since you seemed to miss the reference:

 

Sutekh

Lord Nagafen Raider
7,487
105
What can I say, people love me. It's part of being me.

I even made your signature!
 

Nester

Trakanon Raider
3,150
868
3d 23h 0m
Way to ruin the thread dipshits.




IF you could forever ban any poster on this board who would it be?
 

Sutekh

Lord Nagafen Raider
7,487
105
That wish already came true, but moving the forums somehow removed his perma ban but they didn't reapply, not sure why they didn't just keep the same rule set from fohguild, it worked really well when Tyen wasn't in charge.

Speaking of banned users, where has Mippo been? Did he go the way of Wizardhawk?
 

Jx3

Riddle me this...
<Donors Crew>
1,018
128
2m
Not sure, could have sworn he hung around when RR first started up. Maybe Snowden/Foler has him locked up in a basement in Russia some where.

Subway or Quiznos?
 

Adebisi

What a time to be alive
<Donors Crew>
25,384
37,055
15d 21h 32m
What movie do you absolutely love, but can't watch more than once every 3 months or so?
Goodfellas and Casino


Also Bisi it was failing because you didn't specify one of your values in the equation as a double. (mpg=350.0/12)
Wisdom.

My C++ knowledge is growing exponentially per day.

What's my next task kind sir?
 

Sutekh

Lord Nagafen Raider
7,487
105
I'll mix it up for you bro.

Write a code that assigns your Name, Phone Number, Address, and favorite color (can be made up) to variables and then outputs it to the screen in one cout statement.


GO!