Sutekh's C++ +More Thread

  • Guest, it's time once again for the hotly contested and exciting FoH Asshat Tournament!



    Go here and fill out your bracket!
    Who's been the biggest Asshat in the last year? Once again, only you can decide!

Sutekh

Blackwing Lair Raider
7,489
106
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

Clump of Cells
<Silver Donator>
27,661
32,677
I haven't programmed since I was 10 or so and was fucking with nibbles on Qbasic.
frown.png
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

Clump of Cells
<Silver Donator>
27,661
32,677
Welp, that's the most I've programmed in 16 years. Think Brad will hire me?
 

Sutekh

Blackwing Lair Raider
7,489
106
Because you keep antagonizing him and he finds it fun to make you angry.
 

Sutekh

Blackwing Lair Raider
7,489
106
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

Blackwing Lair Raider
7,489
106
You went through an awful lot of trouble to be pretty unfunny.

since you seemed to miss the reference:

 

Sutekh

Blackwing Lair Raider
7,489
106
What can I say, people love me. It's part of being me.

I even made your signature!
 

Nester

Vyemm Raider
4,924
3,123
Way to ruin the thread dipshits.




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

Sutekh

Blackwing Lair Raider
7,489
106
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...
1,039
173
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?
 

Sutekh

Blackwing Lair Raider
7,489
106
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!