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
Yet another C++ problem... in General
Master
Member # 4614
Profile Homepage #2
Actually, the TeamList class contains another linked list which stores all the players on that team, so...

You're saying that doing what I want to do would be very complicated.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
THE ABOMINABLE PHOTO THREAD: THE THIRD COMING! in General
Master
Member # 4614
Profile Homepage #50
Me? Blonde? ...

I doubt we'll even know what Alo looks like, BtW. Not at this rate.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Yet another C++ problem... in General
Master
Member # 4614
Profile Homepage #0
Since I'm kind of stuck again. :/

This time it has to do with reading and writing classes to and from files. Here's what I have:

void writefile()
{
TeamList TL;
char filename[20];
cout<<"Enter filename: ";
cin.ignore(1, '\n');
cin.getline(filename, 20);
ofstream fout(filename);
fout.write((char*) &TL, sizeof TL);
fout.close();
}

void readfile()
{
char filename[20];
cout<<"Enter filename: ";
cin.ignore(1, '\n');
cin.getline(filename, 20);
ifstream fin(filename);
if(!fin){cout<<"No such file.";goto end;}
fin.read((char*) &TL, sizeof TL);

int i;
cout<<"\n File Menu : "<<filename<<"\n";
cout<<" -----------\n";
cout<<" (1) Create New Team\n";
cout<<" (2) View/Edit Teams\n";
cout<<" (3) Play Game (requires 2 teams)\n";
cout<<" (4) Save Teams\n";
cout<<" (5) Load New File\n";
cout<<" (6) Quit\n\n\n";
fin.close();
end:;
}
TeamList is a linked list of teams I created as a class that contains a bunch of other stuff, but I doubt this has anything to do with the problem at hand.

What I'm trying to do is be able to save a TeamList to a file and then be able to reopen it again at a later time. writefile() creates a file with a user-specified name. readfile() reads the file and displays a menu of what to do with that file.

writefile() seems to work fine; it creates a file and everything, but when I try to read the file, it gives me a whole bunch of irrevelant characters and then crashes. The menu is not displayed.

Anyone know what I could have done wrong?

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Were we prepared? in General
Master
Member # 4614
Profile Homepage #114
But many of the rules of Leviticus were rules set for the Israelites back then. Nowadays, Jesus's death has done away with the need for constant sacrifices of animals and such.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
PHP help here in General
Master
Member # 4614
Profile Homepage #6
All right. Will try.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
THE ABOMINABLE PHOTO THREAD: THE THIRD COMING! in General
Master
Member # 4614
Profile Homepage #46
It was meant to be. Alo doesn't have a picture to show us. Or he just doesn't want to.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
THE ABOMINABLE PHOTO THREAD: THE THIRD COMING! in General
Master
Member # 4614
Profile Homepage #44
I'd post something here if I had a good picture in digital format, but we're kind of still sticking to the film. That and I don't feel like taking one just for this purpose. :/

EDIT: *looks around*

Oh, wait, there is one, but I don't know how good it was. My brother surprised me taking that one. :/

Here.

[ Saturday, July 23, 2005 09:27: Message edited by: Mister Maoben ]

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Huzzah in General
Master
Member # 4614
Profile Homepage #45
Then Alo can just alternate between shooting down one ladder or the other.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
PHP help here in General
Master
Member # 4614
Profile Homepage #4
Okay, so do I need to download PHP, MySQL, and Apache server for it to work?

Hey, Aran! :D

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
BoE/BoA question in Blades of Exile
Master
Member # 4614
Profile Homepage #4
Well, you can explore one town in combat mode, but that's no fun and you have to use some trickery to get outside. The best thing to do is just register.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Im back and its my birthday in General
Master
Member # 4614
Profile Homepage #5
~.iii.iii.i.iii.iii.~
(-----(13)----)
'''''''''''''''''''''''''''

I suppose this is what you meant, Aran? ;) I'll have to admit that pretty puny though compared to spy.there's cakes.

[ Sunday, July 24, 2005 15:03: Message edited by: Mister Maoben ]

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
More ST2 bugs in SubTerra
Master
Member # 4614
Profile Homepage #11
SubTerra 2, huh? When do you think that will be released?

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Would you rather play Homeland or... in Richard White Games
Master
Member # 4614
Profile Homepage #52
Why not?

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Scenario recommendations? in Blades of Exile
Master
Member # 4614
Profile Homepage #10
Spears is good, though I'm not sure about the puzzle content.

I think more puzzles make a better scenario, though.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
hi in General
Master
Member # 4614
Profile Homepage #103
...and Zephyr has, hasn't he?

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
The arrow of time in General
Master
Member # 4614
Profile Homepage #86
quote:
Originally written by Lt. Sullust:

The number isn't really all that important. Even if you screw up a few shuffles it should eventually get back to the correct form...
After some number of years, you mean. I've always noticed, however, that the with the traditional way of shuffling, the better you get at it, the less you're actually shuffling in a totally random way.

Spreading the cards out all over the table and then randomly pushing them back together, while it takes longer, is better. :D

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Dream Job... in General
Master
Member # 4614
Profile Homepage #14
Hmmmm

I'm thinking either an astronomer, a programmer, of a college professer. Or all three at once.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I have to admit... in General
Master
Member # 4614
Profile Homepage #18
Heh. Aran is never going to get himself to actually totally leave. Don't worry Aran, stay! :)

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
PHP help here in General
Master
Member # 4614
Profile Homepage #0
What all do I need to get started, or what would you recommend?

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
THE ABOMINABLE PHOTO THREAD: THE THIRD COMING! in General
Master
Member # 4614
Profile Homepage #8
quote:
Originally written by spy.there:
:eek: What are you doing with this poor hammer-headed baby shark, Salmon?
Getting his picture taken with it. ;)

[ Friday, July 22, 2005 13:43: Message edited by: Mister Maoben ]

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Were we prepared? in General
Master
Member # 4614
Profile Homepage #106
quote:
Originally written by Frozen Feet:

I would have much to say to this topic, but sadly I'm not good enough in english to express my thoughts :( .

... but I can write it in finnish if you want to :P .

Go ahead if you want. I can always use something like this to get a pretty good idea of what you said.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I win! in General
Master
Member # 4614
Profile Homepage #51
You mays well change your post footer now. :/

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
I have to admit... in General
Master
Member # 4614
Profile Homepage #13
In Valley of Thunder he was, and then he posted a topic about the inherent lack of Spiderweb RPs anymore or something, but anyway...

Welcome back.

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

For those who love to spam:
CSM Forums
RIFQ
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Just say no in Richard White Games
Master
Member # 4614
Profile Homepage #95
quote:
Originally written by Verelor:

Not that it's against teh rules or anything of course, but I'm not the one changing my name ever 3 days.
Alorael changes his name every day, actually. That doesn't justify masked profanity, and even though it was minor, Alo can edit your posts. On most forums anyway.

--------------------
-ben4808
Posts: 3360 | Registered: Friday, June 25 2004 07:00
Official Election Final Round Voting in General
Master
Member # 4614
Profile Homepage #172
A couple quick questions here:

1. When is Thuryl going to be modded?

2. I suppose there can be more than 4 moderators per forum on UBB...

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

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

Pages