00:11
notelliottcable has quit [Ping timeout: 255 seconds]
00:12
PragCypher has quit [Quit: Leaving]
00:31
yorick has quit [Remote host closed the connection]
00:32
<
micahjohnston_ >
hey, voiceless velar fricatives!
00:36
<
alexgordon >
sup micahjohnston_
00:37
<
micahjohnston_ >
hi alexgordon
00:37
<
micahjohnston_ >
i love phonological terms
00:43
<
alexgordon >
micahjohnston_: have you read about korean?
00:45
<
micahjohnston_ >
alexgordon: yeah I used to know hangul
00:45
<
micahjohnston_ >
forgot a lot of it but
02:09
notalexgordon has joined #elliottcable
03:03
abumirqaan is now known as muqayil
04:12
<
purr >
<purr> elliottcable: a box of lights
05:37
sephr has quit [Quit: Leaving]
05:52
<
micahjohnston_ >
elliottcable: I always arrive right after you leave :(
07:16
<
purr >
<Nuck> when the fuck was I a seahorse
07:57
<
Nuck >
... when the fuck did I say that?
11:34
cloudhead has joined #elliottcable
11:34
cloudhead is now known as Guest57315
12:22
<
purr >
<alexgordon> like a place for really religious salmon to go
13:02
<
purr >
<elliottcable> I’mma name my first child SIGWINCH.
14:19
alexgordon has joined #elliottcable
14:55
<
purr >
<darkf> im not math you should know that
15:48
Guest57315 has quit [Ping timeout: 260 seconds]
16:57
sephr has joined #elliottcable
17:14
<
purr >
<elliottcable> !nautical themed pashmima afghan
18:31
<
elliottcable >
micahjohnston_!
18:35
sephr has quit [Read error: Connection reset by peer]
18:36
sephr has joined #elliottcable
19:06
<
alexgordon >
elliottcable!
19:06
<
alexgordon >
I fancy an indian
19:07
* alexgordon
^ just realized the above makes absolutely no sense to anybody outside britland
19:11
<
elliottcable >
alexgordon ⑊ what
19:11
<
elliottcable >
you want to bang an Indian chick?
19:11
<
elliottcable >
we're talking red dots, not feathers, yes?
19:11
<
alexgordon >
no, I would like to eat an indian "takeout"
19:12
<
alexgordon >
elliottcable: oh god...
19:12
<
alexgordon >
"red dots not feathers"
19:13
<
alexgordon >
elliottcable: can you say that again, but as an op, so I can quote it accurately on twitter?
19:20
<
purr >
<gqbrielle> what i'm getting from this is that Nuck tastes like bananas.
19:44
alexgordon is now known as alexandertgordon
19:44
alexandertgordon is now known as alexanderteagord
19:44
alexanderteagord is now known as alexandertea
20:31
<
elliottcable >
alexandertea ⑊ wat fuck is that
20:32
<
alexandertea >
elliottcable: countdown
20:52
<
purr >
elliottcable: hi!
21:03
alexandertea is now known as alexgordon
21:51
<
elliottcable >
BangWithFriends.
21:51
<
elliottcable >
laughing my ass off.
21:52
AP_ has joined #elliottcable
21:53
<
elliottcable >
paste your code, bitch <3
21:53
<
elliottcable >
alexgordon ⑊ /nick alexteabagordon
21:54
<
AP_ >
The main function is in a seperate cpp file from the rest of the code
21:54
<
AP_ >
and I just compile the two together, and I dont know how relevant it is.
22:03
alexgordon is now known as alexteabaggordon
22:03
<
alexteabaggordon >
elliottcable: better?
22:08
<
elliottcable >
reading
22:08
<
elliottcable >
lol hi AP_
22:09
<
elliottcable >
AP_ ⑊ alexteabaggordon is a very skilled C++ developer.
22:09
<
elliottcable >
If he says something that isn't about penises, listen.
22:11
<
elliottcable >
God, this instructor's code is atrocious.
22:11
<
elliottcable >
It's nearly as bad as alexteabaggordon's.
22:12
<
elliottcable >
lol AP_ your declarations are inside your function
22:13
<
elliottcable >
move the `void doit() {` part
*after* the declarations, first off
22:13
<
elliottcable >
wat actual fuck is this shit
22:13
<
AP_ >
I haven't the slightest
22:14
<
AP_ >
are you saying that
22:14
rckts has quit [Disconnected by services]
22:14
* elliottcable
sighs
22:14
<
elliottcable >
This is bad.
22:14
<
elliottcable >
This instructor's instructions and shit are fucking incomprehensible.
22:15
<
AP_ >
What are you saying to move?
22:15
rckts has joined #elliottcable
22:15
<
elliottcable >
My best advice: You're struggling enough with the concepts as it is (which is to be expected, it's difficult); fuck this guy. Drop out, and learn it elsewhere.
*Maybe* take the class again later, if you need the credit badly, after having learned it well.
22:15
<
elliottcable >
Or, put it another way: I'm an experienced programmer, and I have no idea what you're supposed to do here, or what your isntructor wants.
22:16
<
elliottcable >
I'm marginally sure he's slightly retarded.
22:16
<
AP_ >
I suppose I can fail this one assignment.
22:16
<
AP_ >
The rest have gone well so far.
22:17
<
elliottcable >
making the code work would be fairly easy; I just have no idea *what he wants*.
22:17
<
AP_ >
As in formatting?
22:17
<
elliottcable >
no, as in, what code he wants where, and what he's expecting you to do to fix this broken code.
22:17
<
elliottcable >
how much have you already done, here?
22:18
<
AP_ >
I've pretty much just coded the functions outside of doit() and their calls and prototypes
22:21
<
elliottcable >
does it compile?
22:22
<
elliottcable >
you aren't currently saving return-values from your functions to variables, inside doit()
22:23
<
elliottcable >
so on L111, your displayDeliveryCharge is getting passed 0.0 and 0.0
22:25
<
AP_ >
what do i have to change to get my return values
22:27
<
AP_ >
because that's what Im getting in my debugging
22:32
<
AP_ >
Or how do I not make it pass 0.0?
22:33
<
elliottcable >
it's not passing *anything*, yet.
22:33
<
elliottcable >
if you just type “12.34” into your code, it isn't going to do anything.
22:33
<
elliottcable >
`12.34;` is a meaningless statement.
22:33
yorick has joined #elliottcable
22:33
yorick has joined #elliottcable
22:33
<
elliottcable >
it's discarding the value.
22:34
<
AP_ >
I understand that.
22:34
<
elliottcable >
similarly, just writing a function-invocation (the shit with the parentheses after it) alone, isn't doing anything for you
22:34
<
AP_ >
I just don't see what to change to get it to work.
22:34
<
elliottcable >
`fooBarBaz();` is
*also* discarding the value; or rather, it's discarding the result.
22:34
<
elliottcable >
instead, you need to write `myValue = 12.34;`
22:34
<
elliottcable >
or, in your case, `fooResult = fooBarBaz();`
22:35
<
elliottcable >
those variables are getting set to zero at the top of the function, and you never replace the zero with the result of that function-invocation.
22:35
<
AP_ >
double parcelWeight = 0.0; double deliveryCharge = 0.0;
22:35
<
elliottcable >
yes, that's fine
*there*
22:36
<
elliottcable >
but you, later on in your code, need to change what parecelWeight stores, into something else.
22:36
<
elliottcable >
you never do that inside the doit() code.
22:36
<
elliottcable >
you: A) set parcelWeight to zero, B) invoke some functions, and C) print parcelWeight. So all it's going to print, is zero.
22:37
<
AP_ >
I see what is going wrong
22:37
<
elliottcable >
do you understand what I just said? if not, what not?
22:38
<
AP_ >
"need to change what parecelWeight stores, into something else."
22:38
<
AP_ >
is "something else" another variable I need to declare in doit()?
22:38
<
AP_ >
Thats where I'm lost.
22:40
<
alexteabaggordon >
ok I'm back
22:40
<
alexteabaggordon >
I'm a very skilled C++ programmer
22:40
<
elliottcable >
nope. I'm sorry if I'm being obtuse, here's the direct commentary:
22:40
<
alexteabaggordon >
so if I say something that's not about penises, you should listen
22:40
<
elliottcable >
you're discarding the return-value of the function, instead of storing it to the variable you made.
22:40
<
alexteabaggordon >
COCK
22:41
<
elliottcable >
`enterParcelWeight()` does nothing by itself
22:41
<
alexteabaggordon >
AP_: this code has too many comments in it, but I'm sure there's nothing you can do about that :P
22:41
<
elliottcable >
you need to *store the return-value to a variable*, namely, the variable you made
22:41
<
elliottcable >
so change it to something like:
22:41
<
alexteabaggordon >
also shaft
22:41
<
elliottcable >
`parcelWeight = enterParcelWeight()`
22:42
<
AP_ >
In the function call?
22:42
<
elliottcable >
yes.
22:42
<
elliottcable >
inside doit's implementation.
22:42
<
elliottcable >
you'll need to do the same thing with the other function that returns a value, too.
22:43
<
AP_ >
Okay. I changed line 80 to parcelWeight = enterParcelWeight();
22:43
<
AP_ >
and it returned the desired value
22:44
<
alexteabaggordon >
you need to set deliveryCharge too
22:44
<
alexteabaggordon >
in line 95, calculateDeliveryCharge(parcelWeight);
22:44
<
AP_ >
to deliveryCharge = calculateDeliveryCharge(parcelWeight);?
22:44
<
alexteabaggordon >
presumably
22:45
<
alexteabaggordon >
AP_: and you should change displayDeliveryCharge() to return void instead of double
22:45
<
alexteabaggordon >
since it always returns 0.0
22:45
<
AP_ >
I changed line 95 but I got an error.
22:46
<
alexteabaggordon >
what was it
22:46
<
AP_ >
Nevermind, user error
22:46
<
alexteabaggordon >
it's kind of weird having function prototypes inside a function
22:47
<
alexteabaggordon >
line 50-52
22:47
<
alexteabaggordon >
but I dunno if you're allowed to move those
22:47
<
AP_ >
deliveryCharge is being returned as an int in debugging
22:47
<
AP_ >
No, I dont think I can
22:48
<
AP_ >
I would like it to return as a double though.
22:48
<
alexteabaggordon >
AP_: debugging? as in gdb?
22:48
<
AP_ >
When I compile it and run it.
22:49
<
alexteabaggordon >
AP_: how are you debugging it?
22:49
<
AP_ >
If I enter 7.5 for the weight I should return 18.XX but I only get 18.
22:49
<
AP_ >
visual studio
22:49
<
alexteabaggordon >
oh right
22:49
<
alexteabaggordon >
windows, obviously :P
22:50
<
AP_ >
So thats my last issue
22:50
<
alexteabaggordon >
isn't it supposed to print the answer out at the end?
22:51
<
alexteabaggordon >
and it prints 18 instead of 18.something ?
22:53
<
alexteabaggordon >
AP_: oh well you're doing setprecision(2)
22:53
<
alexteabaggordon >
so that's why
22:53
<
AP_ >
Should It be 4 then?
22:54
<
alexteabaggordon >
possibly!
22:54
<
alexteabaggordon >
I dunno I normally use printf() instead so I'm not versed in all of this
22:55
<
AP_ >
They say jump, and I say how high
22:55
<
AP_ >
thats how these assignments go
22:56
<
elliottcable >
got it working?
22:56
<
elliottcable >
alexteabaggordon, meet my girlfriend's brother.
22:56
<
elliottcable >
other alex, meet my C++-alex.
22:57
<
alexteabaggordon >
well the good news is that elliottcable can no longer make fun of me for using too much whitespace!
22:57
<
AP_ >
Oh I have one last thing
22:58
<
elliottcable >
... a bit
22:58
<
elliottcable >
no. no I don't.
22:58
<
AP_ >
when I loop the program, I don't want the printheading() to run agian
22:58
<
alexteabaggordon >
elliottcable: it's from when you put a $1000 bounty on a paws impl
22:59
<
AP_ >
In the do-while how can I have it ignore a function on the rpeat?
23:00
<
alexteabaggordon >
I don't see a do while?
23:00
<
AP_ >
main() is in a serpate cpp for whatever reason.
23:00
<
alexteabaggordon >
AP_: move the printHeadings() call out of the doit() and above the do {
23:02
<
AP_ >
Do I have any alternatives? He says not to touch the main function.
23:03
<
AP_ >
Youre saying move it from L66 to L47 in the main cpp?
23:03
<
AP_ >
*the cpp with main()
23:03
<
alexteabaggordon >
AP_: you can pass a boolean to doit()
23:03
<
alexteabaggordon >
indicating whether the loop has looped
23:03
<
alexteabaggordon >
but that would be more code
23:04
<
alexteabaggordon >
it's easier just to… do the call to printHeadings() outside of the loop
23:04
<
alexteabaggordon >
that's the most obvious thing anyway
23:05
<
AP_ >
I can't seem to get that.
23:06
<
AP_ >
Oh well, I'm out of time anyway
23:09
<
AP_ >
Thank you alex and elliot for you time.
23:17
<
elliottcable >
o7 vil
23:18
<
vil >
elliottcable: how's things?
23:19
<
elliottcable >
good.
23:43
<
purr >
<gqbrielle> anything that makes elliottcable mad is funny.