No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
alright, I have most of this hammered out, but still a couple problems I cant figure out. in the player class, the Nextmove function is not working for me. It uses the setvalue function in TicTacToe class(which works fine by itsself) also there are problems assigning player names that I … | |
Its been years since I've used Java, this one is stumping me... I implemented my own Observer/Observable interfaces for use with a 2-way RMI setup(I'm sure theres a better name but I don't know it yet). I have 2 interfaces ToyStore and ToyFactory. ToyStore extends Remote implements Observer, ToyFactory extends … | |
(c++) Ok so I understand how to use the system function, and how to output to a file. How do I pipe the output of say system("last") to a file? system() returns an int, so if I mystream << system("last") it will put an int in the file. I need … | |
Here we go, I am working on some code to store an IP address in an object. I have overloaded operators >>, <<, and == and they are working fine with 1 problem. I am supposed to be able to cin >> ip1 >> ip2 >> ip3; but after I … | |
I just started messing around with classes and have been trying to figure out this error for an hour or so. Here is the compiler error: [code] g++ player.cpp tictactoe.cpp TicTacToe.h:15: error: expected constructor, destructor, or type conversion before ';' token player.cpp:26: error: 'TicTacToe' has not been declared player.cpp: In … | |
is there any way to check what mode a FILE pointer has been opened in? ("r", "w")? | |
okay I am getting segmentation fault whenever I pass more than 300000 ints or so to be sorted....the code works fine for less than this with mergesort quicksort is sorting 100000 fine if they are in random order, but seg faulting if I sort a bigger number, or if the … |
The End.