For some reason I'm getting the following errors:
"redefinition of 'class TsuPod'" on line 19 of tsuPod.cpp
"previous definition of 'class TsuPod'" on line 21 of tsuPod.h
I don't know why I'm getting this error, since I've put header guards in my header files. I'm obviously doing something wrong, but I can't think of what it is. Can you guys help me out?
>>4 I was just hoping some guys on the internet might be willing to help me out.
Wrong fucking place.
Name:
Anonymous2009-03-26 19:20
>>5
Why did having the declarations like that in song.h not cause a problem then? Although your solution works, I'm just trying to understand what's going on.
Anyway, now that I'm using the file you pointed me to, I found some more errors. I was able to fix all but one. The new file can be found here: http://pastebin.com/d2f9dcd38
>>9
I'm using Dev-C++ to compile my code, and I have everything in the same project. Is there some weirdness with Dev-C++ that might make it try to compile this wrong?
Name:
Anonymous2009-03-26 19:33
By the way, the error is
"In member function 'bool TsuPod::addSong(Song)': invalid use of member (did you forget the '&' ?)" on line 43 of tsuPod.cpp
Name:
Anonymous2009-03-26 19:56
>>9
It turns out it wasn't getting compiled, because it turns out it wasn't working like I said it was in >>7. For whatever reason Dev-C++ neglected to alert me to that. I'm working on fixing it now.
I'd advise using something that actually gets updated, like Code::Blocks (http://www.codeblocks.org/), instead of Dev-C++, which hasn't been updated in over 4 years.
Name:
Anonymous2009-03-26 20:29
Alright, now that I've fixed some things and I'm compiling using the command line, I'm only getting one error message:
tsuPod.cpp: In member function `bool TsuPod::addSong(Song)':
tsuPod.cpp:43: error: invalid use of member (did you forget the `&' ?)
Oh, and I forgot to thank >>5 for helping me out, so thanks.
And if >>9 hadn't mentioned that song.cpp might not be compiling, I wouldn't have tried compiling using command line, which was showing more errors than Dev-C++ for whatever reason.
For the sake of my faith in humanity, I'm going to pretend these Windows Sepples ``programming'' dipshits are all the same person, trolling us exponentially.
Name:
Anonymous2009-03-26 20:38
>>15
WHAT? Then why the hell does my school recommend it? Stupid university.
>>21 What's Sepples anyway?
In case you're wondering why people are being hostile, it's because of shit like this. If you're going to be a cunt and demand we help you with your shitty homework problems, at least take the time to figure out how this works.
Name:
Anonymous2009-03-26 23:00
>>22
I haven't been demanding anything. I have been asking for help. If you don't want to, you can just ignore me. There is no reason to be hostile.
var dates = document.querySelectorAll(".posterdate");
for(var i = 0; i < dates.length; i -=- 1) {
var m = /(\d+)-(\d+)-(\d+)\s+(\d+)\:(\d+)/(dates[i].textContent);
if(!m)
return;
var d = new Date(m[1], m[2], m[3], m[4], m[5]) - new Date(1993, 8, 31);
d = (d-d%86400000)/86400000;
dates[i].textContent = "1993-09-" + d + " " + m[4] + ":" + m[5];
}
PS. Shiichan will doubtlessly insert a semicolon after the @include URL, so please remove that. If your browser doesn't support querySelectorAll, get a real one or change it.
>>28
>i -=- 1
It might look cool and get you some brownie points with your mother and friends from community college, but you do realise this will actually perform a hardware subtraction right?