Search Results

Showing results 1 to 20 of 20
Search took 0.02 seconds.
Search: Posts Made By: M Tritt
Forum: C++ Jul 3rd, 2005
Replies: 8
Views: 3,062
Posted By M Tritt
I'll find help elsewhere.

It's one thing to give help and guidance (even when people do things wrong) and another to give verbal abuse. I'm probably twice your age and don't appreciate your...
Forum: C++ Jul 3rd, 2005
Replies: 8
Views: 3,062
Posted By M Tritt
Ya know... if I wanted to be talked to like I'm 3, I'd move back home with my mother...

I thought this was a forum that I could go to for help, not abuse.
Forum: C++ Jul 3rd, 2005
Replies: 1
Views: 4,907
Posted By M Tritt
I have a pointer called **pieces that points to an array of class type GamePieces that contain members pName and pType. I am trying store values in pieces[row][col].pType and then print the pieces...
Forum: C++ Jul 3rd, 2005
Replies: 8
Views: 3,062
Posted By M Tritt
I still crash on the following:


while (pieces[row][col].pType == 'X' || pieces[row][col].pType=='O') {
cout << "Space is already taken, try again" << endl;
cout <<...
Forum: C++ Jul 3rd, 2005
Replies: 8
Views: 3,062
Posted By M Tritt
I figured if I stared at it long enough, I'd miss something completely obvious!

Thank you! Sometimes another pair of eyes does wonders!

mt
Forum: C++ Jul 3rd, 2005
Replies: 8
Views: 3,062
Posted By M Tritt
I'm building a tic tac toe game with a variable board size using class GameBoard and class GamePiece. The GamePieces have a char array, pName, for the player's name and a char pType for the piece (X...
Forum: C++ Jul 1st, 2005
Replies: 8
Views: 2,871
Posted By M Tritt
I've gotten that one, too... For some reason, that one's disappeared for me now... Not sure what's going on... :o

Thanks for all of the suggestions.. I really appreciate it!

mt
Forum: C++ Jul 1st, 2005
Replies: 8
Views: 2,871
Posted By M Tritt
what would cause this error??

error C2593: 'operator <<' is ambiguous

using the code above with the ofstream overload??

mt
Forum: C++ Jul 1st, 2005
Replies: 8
Views: 2,871
Posted By M Tritt
I'm sure there are a lot of errors ;) I haven't written anything for about 3-4 years and that was just the intro to c++ class...

I'm really struggling with the overloaded operators << and >> ...
Forum: C++ Jul 1st, 2005
Replies: 8
Views: 2,871
Posted By M Tritt
Is there a way to fix this so I don't have to create a new function? I attached my code to look at, if that helps...
Forum: C++ Jul 1st, 2005
Replies: 8
Views: 2,871
Posted By M Tritt
Can anyone lead me in the right direction to get this to work???

my << overload compiles fine...

ofstream& operator<<(ofstream& ofs, const GameBoard& b) //overloaded ofstream operator to save...
Forum: C++ Jun 29th, 2005
Replies: 7
Views: 2,000
Posted By M Tritt
I knew it would painfully obvious! Thank you!!!!

One more question regarding overloading... I was reading aobut the -> operator and all I could find was a "smart pointer" class. Is there a way...
Forum: C++ Jun 29th, 2005
Replies: 7
Views: 2,000
Posted By M Tritt
I'm sure something should be obvious to me by now, but I'm still getting an error on my ifstream...


friend ifstream& operator>>(ifstream& ifs, GamePiece& p); //overloaded ostream operator to...
Forum: C++ Jun 29th, 2005
Replies: 7
Views: 2,000
Posted By M Tritt
I made the following changes, but still get errors... what am I missing????


friend ostream& operator<<(ostream& os, const GamePiece& p);
friend ofstream& operator<<(ofstream& ofs, const...
Forum: C++ Jun 28th, 2005
Replies: 7
Views: 2,000
Posted By M Tritt
I'm trying to compile the following class code and keep getting errors on the overload functions. Everything else compiles ok. I've looked at several sources and compared the syntax and I don't see...
Forum: C++ Jun 28th, 2005
Replies: 10
Views: 5,827
Posted By M Tritt
Bruce...

Assignment was actually due yesterday (Mon), but I'm hoping to get it in by next Tues with a small penalty...

Thanks for your input... I'm reworking the code and will post any more...
Forum: C++ Jun 27th, 2005
Replies: 10
Views: 5,827
Posted By M Tritt
Bruce -
Thanks so much for taking time to look at my code. I really appreciate it.

I made the changes you suggested, but I can't get the gamepiece class to compile. It stops on my operator...
Forum: C++ Jun 26th, 2005
Replies: 10
Views: 5,827
Posted By M Tritt
I can't get these constructors and operator overloads to compile... Any suggestions? I'm sure there are numerous other errors, but I can't get past the first few lines...

Thanks,
Marcia
...
Forum: C++ Jun 26th, 2005
Replies: 10
Views: 5,827
Posted By M Tritt
Thanks for the input. We are talking a bit about overloading operators and I'm struggling a bit with them. I'm have a hard time setting up the gamepiece class as well as the print functions for the...
Forum: C++ Jun 24th, 2005
Replies: 10
Views: 5,827
Posted By M Tritt
I'm trying to put together a tic tac toe game for a c++ class. Requirements are that it have two classes - gameboard and gamepiece. The gameboard I've pretty much taken care of, but I'm confused on...
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC