Forum: Assembly Oct 5th, 2009 |
| Replies: 0 Views: 262 so i need to input 10 ints into a table then use insertion sort but i dont know how to step through the table like you would and array in c++ since i have found out i cant go tbl[length-1] for... |
Forum: Java May 12th, 2008 |
| Replies: 5 Views: 516 makes sense but where the error takes you to is a part where my teacher gave us code and we had to expand on it. the code worked fine then and i made no changes to that part
My... |
Forum: Java May 12th, 2008 |
| Replies: 5 Views: 516 but what does casting mean and y would i noe be able to cast it? |
Forum: Java May 11th, 2008 |
| Replies: 5 Views: 516 i am some what new to java so i am not really familiar with all the errors and such but i am getting one that says this:
Exception in thread "main" java.lang.ClassCastException:... |
Forum: C++ May 19th, 2006 |
| Replies: 5 Views: 3,933 what i am trying to do with the root->getRight() and root->getLeft() is basically just delete the left or right node of the tree depending on what the key is. |
Forum: C++ May 19th, 2006 |
| Replies: 5 Views: 3,933 that fixed the first error but the others i cant do that to |
Forum: C++ May 19th, 2006 |
| Replies: 5 Views: 3,933 i dont even know if im on the right track with this one but here it goes.
im trying to write a delete function for a BST and this is what i have
bool BST::delNode(Key key)
{
BST_Node* node;... |
Forum: C++ May 18th, 2006 |
| Replies: 3 Views: 3,517 yea i have an insert function already
bool BST::insert(BST_Node* &subRoot, Key key)
{
BST_Node* node = new BST_Node(key);
if(!subRoot)
{
subRoot = node;
return true;
} |
Forum: C++ May 17th, 2006 |
| Replies: 3 Views: 3,517 i know how to get a file and all but how do u go about putting that file into the tree?
my get file
void BST::loadFile()
{
cout << "Enter the the file location" << endl;
cin >> inFileName;... |
Forum: C++ May 14th, 2006 |
| Replies: 4 Views: 936 ok i understand now thank you |
Forum: C++ May 14th, 2006 |
| Replies: 4 Views: 936 i dont really understand you explanation of y im getting the error could u explain it a little more |
Forum: C++ May 13th, 2006 |
| Replies: 4 Views: 936 i am getting this error "error C2664: 'bool __thiscall BST::insert(class BST_Node *& ,struct Key)' : cannot convert parameter 1 from 'class BST_Node *' to 'class BST_Node *& '
A reference... |
Forum: C++ May 6th, 2006 |
| Replies: 1 Views: 1,585 im trying to write a loop so that 8 of each card in a blackjack game is made and i cant get it to work right. it should print out 8 cards for each card made and delete the card if there are already... |
Forum: C++ May 4th, 2006 |
| Replies: 2 Views: 905 that make sence, thx very much |
Forum: C++ May 4th, 2006 |
| Replies: 2 Views: 905 im trying to make a blackjack game using stacks and lists and i am having a problem with my lists, its not being created and i dont know y? the list is a list of cards for the players and the stack... |
Forum: C++ Apr 30th, 2006 |
| Replies: 6 Views: 1,283 see thats the thing i dont even know how about make one card let alone a stack of them and i fixed the enum thing and it compiles now |
Forum: C++ Apr 29th, 2006 |
| Replies: 6 Views: 1,283 its goin to be casino like but im not goin to follow all the ruled there will be 8 decks in the stack of cards and u just take a card from the top of the deck after its shuffled. im not goin to... |
Forum: C++ Apr 29th, 2006 |
| Replies: 6 Views: 1,283 i need some help on this, im making a blackjack game and i need to make a stack of cards and i dont know what to do so just get me started is all im really askin for.
here is what i have so far
... |
Forum: C++ Apr 4th, 2006 |
| Replies: 14 Views: 3,248 lol yea the game is suppoes to crazy is there a source code for that game on there i couldnt find it if there was |
Forum: C++ Apr 4th, 2006 |
| Replies: 14 Views: 3,248 this is what i did and it seems to work
template <class TYPE>
bool Grid<TYPE>::winDiagonal(Player* player) //diagonals
{
Playerlist plist;
int count = 0;
int size = plist.getSize();... |
Forum: C++ Apr 3rd, 2006 |
| Replies: 14 Views: 3,248 actually i got the static character goin but ill let ya know if i get the diagonal working |
Forum: C++ Apr 2nd, 2006 |
| Replies: 14 Views: 3,248 yea im stumped on this so for now dont worry about it but what do u see wrong with my static character im more concerned about that right now cause its almost working |
Forum: C++ Apr 1st, 2006 |
| Replies: 14 Views: 3,248 i have another question too, i cant get my static character to work right either. i start the first player off at 'A' which i get fine but when it goes to hte next player i want the player to be 'B'... |
Forum: C++ Apr 1st, 2006 |
| Replies: 14 Views: 3,248 i need some help with figuring out how to check diagonals in my 3D Tic-Tac-Toe board. i have the horizontal, vertical and depth done fine but i cant figure out how to get diagonals. i only put in the... |
Forum: C++ Mar 26th, 2006 |
| Replies: 2 Views: 964 oh geez how embarising duh. thanks |
Forum: C++ Mar 25th, 2006 |
| Replies: 2 Views: 964 i have 3 errors that i cant figure out y they are appearing i thought everything was fine
template <class TYPE>
class Darray{
protected:
TYPE DEPTH;
TYPE ROW;
TYPE COL;
Cell ***... |
Forum: C++ Mar 13th, 2006 |
| Replies: 3 Views: 963 oh well i didnt search "matrix arithmetic" i searched "matrices in c++" |
Forum: C++ Mar 12th, 2006 |
| Replies: 3 Views: 963 can someone give me a good link on how to add, subtract, multiply matrixes i cant fint it anywhere |
Forum: C++ Mar 6th, 2006 |
| Replies: 17 Views: 3,079 well yea but we have to make it in C++ for our class, we have not learned anything else yet |
Forum: C++ Mar 6th, 2006 |
| Replies: 17 Views: 3,079 ok i figured out the arrows but now i have to get the cursors in there
rerwiten grid class
class Grid : public Darray {
private:
int currentRow,
currentDepth,
currentCol;
bool visit, |
Forum: C++ Mar 5th, 2006 |
| Replies: 17 Views: 3,079 is it because i have an int array and it equaling a char ACTIVE and VISIT |
Forum: C++ Mar 5th, 2006 |
| Replies: 17 Views: 3,079 can you see what i am doing wrong?? |
Forum: C++ Mar 4th, 2006 |
| Replies: 17 Views: 3,079 it crashes when i hit one of the arrow keys i took out the function clear_da_screen too but i know thats not the problem |
Forum: C++ Mar 3rd, 2006 |
| Replies: 17 Views: 3,079 ok so i tried rewriting it to fit what im trying to do but im gettin a linking error
error LNK2001: unresolved external symbol "public: void __thiscall Grid::clear_da_screen(void)"... |
Forum: C++ Mar 3rd, 2006 |
| Replies: 5 Views: 1,524 it would probably be easier is u could post all ur code then we can look at it all. |
Forum: C++ Mar 3rd, 2006 |
| Replies: 17 Views: 3,079 thats right i forgot about the definitions file
#define M char (197);
#define U_L char (218);
#define L_L char (192);
#define U_R char (191);
#define L_R char (217);
#define T_M char (194);... |
Forum: C++ Mar 3rd, 2006 |
| Replies: 17 Views: 3,079 i am totally stumped on what to do here. basically whats goin on is i have a 3D dynamic array and i need to have a cursor inside of it and move around on the inside. i do i go about doing that? like... |
Forum: C++ Mar 2nd, 2006 |
| Replies: 2 Views: 2,264 please help me i cant figure it out |
Forum: C++ Mar 2nd, 2006 |
| Replies: 2 Views: 2,264 so i got it to print how i want it to but i cant get it to show the right numer of rows and columns.
void Darray::print () const
{
// makes inside of grid
for(int d=0; d<DEPTH; d++) ... |
Forum: C++ Mar 1st, 2006 |
| Replies: 2 Views: 2,264 im trying to make a table using askii art thats changed when the dimensions of the array are changed. i have been playin it for like 2 hours and i cant figure it out, here is was i have so far.
my... |