Sutekh's C++ +More Thread

7,479
0
Reactions
45 23 0 0
#1
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>
24,796
4d 16h 3m
Reactions
22,564 1,137 0 0
#2
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;
}
 
7,479
0
Reactions
45 23 0 0
#3
return 0; obviously god bro come on.
 

Adebisi

What a time to be alive
<Donors Crew>
24,796
4d 16h 3m
Reactions
22,564 1,137 0 0
#4
Welp, that's the most I've programmed in 16 years. Think Brad will hire me?
 
7,479
0
Reactions
45 23 0 0
#5
Only if you're performing it on yourself faggot.
 
7,479
0
Reactions
45 23 0 0
#7
Because you keep antagonizing him and he finds it fun to make you angry.
 
7,479
0
Reactions
45 23 0 0
#9
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)
 
7,479
0
Reactions
45 23 0 0
#11
You went through an awful lot of trouble to be pretty unfunny.

since you seemed to miss the reference:

 
7,479
0
Reactions
45 23 0 0
#13
What can I say, people love me. It's part of being me.

I even made your signature!
 
7,479
0
Reactions
45 23 0 0
#15
Hey you're the first. And I'll say I've always like your animated horsemen.

Enough of the lovefest, beef, chicken or fish?
I'm your first? Aren't you afraid that will "fuck you up in the head"?
 

Nester

Molten Core Raider
3,083
21h 14m
Reactions
575 77 0 0
#16
Way to ruin the thread dipshits.




IF you could forever ban any poster on this board who would it be?
 
7,479
0
Reactions
45 23 0 0
#17
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
2m
Reactions
94 2 0 0
#18
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>
24,796
4d 16h 3m
Reactions
22,564 1,137 0 0
#19
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?
 
7,479
0
Reactions
45 23 0 0
#20
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!