Profile for Sturg

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).

Recent posts

Pages

AuthorRecent posts
What was your first post? in General
Master
Member # 4614
Profile Homepage #13
Your most marked improvement would be your post count. :P

No, I like ya', Alo. Though I wasn't around back when you started.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
C++ problem in General
Master
Member # 4614
Profile Homepage #2
I have tested this with two separate player objects, player1 and player2 using the overloaded constructor, and they worked just fine. However, the array is what seems to get me into trouble. The array is good, though, because it allows me to use a for loop in the function to list each player separately, but all in one block. Without the array, I'd have to rewrite the the block inside the for loop nine times, which would make the code cumbersome and repetitive.

So PoD, you talked about using a vector to declare that array that might work better. How exactly would you do that?

Oh and on a side note, if I don't set the default constructor to set all the member variables to 0 and just had it create the object, I can avoid the error until the Player 7 line. But the lines above are filled with weird numbers, suggesting the member variables are getting assigned to something I didn't assign them to. With the default constructor shown, however, the program works as I said before...I doesn't. :P

I'm on Dev C++, if that helps at all. :/

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
C++ problem in General
Master
Member # 4614
Profile Homepage #0
All right, here's the class declaration:
class player
{
public:
player();
player(int g, int ab, int hit);
~player(){}
void setAverage(){average=(hits*1000)/AB;}
int getAverage() const {return average;}
int getGames() const {return gamesPlayed;}
int getAb() const {return AB;}
int getHits() const {return hits;}

private:
int average;
int gamesPlayed;
int AB;
int hits;
};


player::player():
average(0),
gamesPlayed(0),
AB(0),
hits(0){}

player::player(int g, int ab, int hit)
{
gamesPlayed=g;
AB=ab;
hits=hit;
}
And here's the function I'm using this class with:
void PlayerStats()
{
int i;
player players[9];
cout<<" Name Average G Hits AB \n";
cout<<" -----------------------------------------\n";
for(i=0;i<9;i++)
{
cout<<" Player "<<i+1<<" ";
players[i].setAverage();
int ave=players[i].getAverage();
cout<<".";
if(ave<100)
{
cout<<"0";
if(ave<10)
cout<<"0";
}
cout<<ave<<" "<<players[i].getGames()<<" "<<players[i].getHits()<<
" "<<players[i].getAb()<<"\n";
}
cout<<"\n\n";
}
And my expected output:
Name Average G Hits AB
-----------------------------------------
Player 1 .000 0 0 0
Player 2 .000 0 0 0
Player 3 .000 0 0 0
Player 4 .000 0 0 0
Player 5 .000 0 0 0
Player 6 .000 0 0 0
Player 7 .000 0 0 0
Player 8 .000 0 0 0
Player 9 .000 0 0 0
Sorry for my lack of empty lines where there should have been; it wouldn't put them in for me.

Now the problem: instead of creating the expected output when I call this function, the only thing I get is "Player 1," and then one of those program error boxes comes up that says I need to close the program and that "Microsoft needs to hear about this problem," to which you click "Don't Send" (XP users know what I'm talking about).

Do any of you programmers see anything fatally wrong with this that might be causing the error, or is my code just plain illegible? :)

Oh, and this comes from my program I'm working on to track baseball statistics, since people were wondering.

[ Tuesday, May 10, 2005 16:47: Message edited by: 1001011001000 ]

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
What was your first post? in General
Master
Member # 4614
Profile Homepage #8
Yeah, my first post was on the topic "If Magic is your Crutch" in BoE which just *barely* got deleted in PPP2. Has anyone ever but up those files on the Internet yet?

But if you're interested, you can look on the last page of BoE. All those topics I started were from back when I was at <20 posts and never clicked on General.

Wow, Kel's first posts was a litter longer than the average first post, I'd say. :)

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
What was your first post? in General
Master
Member # 4614
Profile Homepage #0
What was the purpose of your first post, and is your first post still in existence?

Just a fun poll.

Poll Information
This poll contains 1 question(s). 42 user(s) have voted.
You may not view the results of this poll without voting.

function launch_voter () { launch_window("http://www.ironycentral.com/cgi-bin/ubb/ultimatebb.cgi?ubb=poll;d=vote;pollid=QvucwEoaboRK"); return true; } // end launch_voter function launch_viewer () { launch_window("http://www.ironycentral.com/cgi-bin/ubb/ultimatebb.cgi?ubb=poll;d=view;pollid=QvucwEoaboRK"); return true; } // end launch_viewer function launch_window (url) { preview = window.open( url, "preview", "width=550,height=300,toolbar=no,location=no,directories=no,status,menubar=no,scrollbars,resizable,copyhistory=no" ); window.preview.focus(); return preview; } // end launch_window IMAGE(votenow.gif)     IMAGE(voteresults.gif)

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
E3: Ruined World -- Room in Sulfras's Cave in The Exile Trilogy
Master
Member # 4614
Profile Homepage #15
Yep, Eldibs, it has become an unwritten rule to never steal Alorael's sig, but newbies do it all the time (I did too). I don't any more, though.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
From AOL News 2 in General
Master
Member # 4614
Profile Homepage #26
The way I look at it, if an animal runs out in front of you on the road, it's not your fault. After all, the road was built for cars and not meant for animals and it should be noted that cars are not always creeping along.

So if your animal gets hit because it was on the road, well, too bad. Your animal must not have been very smart. :P

Also, swerving to avoid something is bad, unless it's_huge. Unless, of course, your are of the disposition that a little squirrel is of more value than car repairs and possibly your life. Run it over in the name of fun.

Deer should be avoided if possible because of the damage caused by hitting it, but if you must hit it, it would be better to do so instead of swerving into oncoming traffic or off a cliff.

[/needlessrambling]
[/post]

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
The single most annoying part of (Spidweb) RPGs in General
Master
Member # 4614
Profile Homepage #41
Which is why Jeff exaggerated your carrying abilities so you shouldn't have so much of a problem with not finding places to put all your suits of armor. :P

But you also must remember that none of Jeff's games are advanced enough that detailed handling of items would fit right in.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
E3 Ruined World: Who did you think was responsible for the plagues? in The Exile Trilogy
Master
Member # 4614
Profile Homepage #8
quote:
Originally written by Ecce Tempus:

—Alorael, who is happier calling it planted evidence. The fabricated scales are reasonable enough, but wouldn't a mage of Erika's standing create a signature rune that no other mage could fake?
Well, you don't do a charcoal drawing of the rune when you "memorize" it. So when you describe it to Berra, he sees that the description is very similar to Erika's symbol, but he never goes and sees for himself. Therefore, the rune planted in the Alien Slime's lair could have been a close duplicate to Erika's, but without the elements that the Vahnatai couldn't duplicate.

Those Vahnatai did think they were clever.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Undead Topics Need Loving Too (aka "Give Me Your First-Born") in General
Master
Member # 4614
Profile Homepage #524
quote:
Originally written by The Almighty Doer of Stuff:

The music thread in question basically went like this:
(Poster 1): (band name) - (song title)
(Poster 2): (band name) - (song title)
(Poster 3): (band name) - (song title)
(Poster 1): (band name) - (song title)
(Poster 4): (band name) - (song title)
(Poster 2): (band name) - (song title)
for 1001 posts. The whole thing was spam.

...Which is why it should have been locked much sooner than it actually did. But I guess if the topic had a shot at 1000, you should let it get there.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
The single most annoying part of (Spidweb) RPGs in General
Master
Member # 4614
Profile Homepage #36
It makes the game more balanced, though, which is a good thing.

What Gizmo said I meant was right. Maybe there should be a drug like skribbane that increases your strength and gives you more inventory slots. :P

This problem can be combatted, however, by just picking up things of value and not every stray pair of pants laying around.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Since people always seem to be going "Yay, my 1000th post" in General
Master
Member # 4614
Profile Homepage #26
Probably a lot of people that like to register on every forum they can find, which is a bad idea in my opinion. It's just a welcome to a load of spam E-mail, giving you E-mail address away like that.

And all those multiple accounts, too. :rolleyes:

On a side note, TGM's new account still has the "Apprentice" title and not "BANNED." Maybe he's being forgiven. :)

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Undead Topics Need Loving Too (aka "Give Me Your First-Born") in General
Master
Member # 4614
Profile Homepage #521
You'd think 1000 posts of discussion about music would turn in to 'lock the topic' material sometime. The "Return of What are you listening to?" topic got much less far. Needless to say, this is by far the longest topic I've yet posted in.

I think Imban should have left the "Do you think there is a hell" topic alone, though. :P

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
So I'm gone. in Blades of Exile
Master
Member # 4614
Profile Homepage #23
Just hope RiB comes out soon. ;)

He just lost his interest in BoE. I'll bet he comes back sometime, though.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
E3 Ruined World: Who did you think was responsible for the plagues? in The Exile Trilogy
Master
Member # 4614
Profile Homepage #3
Well, the first person I guessed was Erika because that's the evidence you get after the first plague, the slimes, though it's clear, as Alo said, that it was the Vahnatai in the end.

What I want to know is now Erika's symbol got into the Slime Pit and dragon scales into the Filth Factory.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
So I'm gone. in Blades of Exile
Master
Member # 4614
Profile Homepage #21
Ooh...I think he'd be gone by now, Mervian. :(

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Since people always seem to be going "Yay, my 1000th post" in General
Master
Member # 4614
Profile Homepage #17
Hi TGM!

I don't recall what he was banned for, however.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I have survived through 1000 posts... in General
Master
Member # 4614
Profile Homepage #69
I think it all depends on your browser and screen resolution. As it would seem, the higher your resolution, the less it gets distorted.

Like I said, my current name does not distort my screen whatsoever as it is, but with one or two more characters it might. And I'm on MSN Explorer at 1024x768.

If you want a long name, take member 4003 or one of them that's called Yankerdoodledandardaloopididoyoalag.

[ Saturday, May 07, 2005 13:31: Message edited by: 1001011001000 ]

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
the Empire's capital city in General
Master
Member # 4614
Profile Homepage #27
Oh. :o

Ideas made and disproved.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
translation in Tech Support
Master
Member # 4614
Profile Homepage #5
Well, if you can understand English, I don't see why you couldn't just leave it alone.

But, if you want to know something...*points to his sig*.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
the Empire's capital city in General
Master
Member # 4614
Profile Homepage #25
He meant the Roman Empire. I don't think Italy ever had a capitol other than Rome.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Undead Topics Need Loving Too (aka "Give Me Your First-Born") in General
Master
Member # 4614
Profile Homepage #508
No, I woudn't say we're too big of hillbillies.

*looked out the window and sees nothing but a hill and the sky*

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I have survived through 1000 posts... in General
Master
Member # 4614
Profile Homepage #64
Yeah, I doesn't distort my screen, either. But Alo, you have had a few one-word monikers that did distort my screen.

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I have survived through 1000 posts... in General
Master
Member # 4614
Profile Homepage #61
quote:
Originally written by Gizmo:
quote:
- |\|00|3E|\|.
LOL

You gotta use that as your next moniker. It's great!


^___________^

quote:
From my 13-year-old brother:
Duhhhhhhhhhhhh!
(He really wanted me to post that; why I have no idea; please save your [negative] comments.) :rolleyes:

[ Thursday, May 05, 2005 17:50: Message edited by: 1001011001000 ]

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
The single most annoying part of (Spidweb) RPGs in General
Master
Member # 4614
Profile Homepage #29
Which seems right. After all, wouldn't a suit of armor be less encumbering if you were wearing it rather than packing it around?

--------------------
-ben4808

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00

Pages