Forum: Legacy and Other Languages Mar 3rd, 2007 |
| Replies: 2 Views: 1,875 Would something like this work?
(defun list (row-and-column (1 2 3 4 5
2 3 4 5 1
3 4 5 1 2
4 5 1 2 3
... |
Forum: Legacy and Other Languages Mar 3rd, 2007 |
| Replies: 2 Views: 1,875 This is the first program I have ever written in LISP, and I am completely confused. I need to write a function that returns a list of 5 rows of entries, and each one of these rows is a list of 5... |
Forum: C++ Nov 1st, 2006 |
| Replies: 8 Views: 2,753 Thanks everybody! I got my program working. |
Forum: C++ Nov 1st, 2006 |
| Replies: 8 Views: 2,753 How exactly would I do that? I thought that i was implementing the default constructor in the complex.h file with this line of code:
Complex( double = 0.0, double = 0.0 ); // constructor
... |
Forum: C++ Nov 1st, 2006 |
| Replies: 8 Views: 2,753 How exactly would I do that? I thought I implmented the Complex objet in the complex.h file with the line "Complex complex;" Thank you so much for your help! |
Forum: C++ Nov 1st, 2006 |
| Replies: 8 Views: 2,753 I tried to do what you said, but I'm still having a problem. I keep getting an error message
[Linker error] undefined reference to `Complex::Complex(double, double)'
I think the problem... |
Forum: C++ Oct 31st, 2006 |
| Replies: 8 Views: 2,753 I'm trying to write a program that uses overloading of operators to perform operations (add, multiply, etc.). I've got the program done, but I'm having trouble modifying the driver I have to fit the... |
Forum: C++ Oct 3rd, 2006 |
| Replies: 10 Views: 3,706 I tried to fix the problem by changing the arrays to
static const char *suitValue[ 4 ] = { "Hearts", "Diamonds", "Clubs", "Spades" };
static const char *faceValue[ 13 ] = { "Ace",... |
Forum: C++ Oct 3rd, 2006 |
| Replies: 10 Views: 3,706 I removed the semicolon, but the sort still will not work. The compiler error is DeckOfCards.cpp `faceValue' undeclared (first use this function) and it is saying that the error is in this line... |
Forum: C++ Oct 2nd, 2006 |
| Replies: 10 Views: 3,706 Thank you so much for helping me!!!! I added a sort method (a simple selection sort) to my code and fixed the straight method, but something still is not working. I think something is wrong with my... |
Forum: C++ Oct 2nd, 2006 |
| Replies: 10 Views: 3,706 Well, I thougt it was an integer. The char array assigns values to each card. I think part of my problem is hand[i]. I'm trying to see if the hand contains all of the values, but the values don't... |
Forum: C++ Oct 2nd, 2006 |
| Replies: 10 Views: 3,706 I'm trying to write program that evaluates a poker hand and returns whether or not it contains a straight, flush, pair, etc. I've got every method except one to work. I cannot figure out how to... |
Forum: C++ Sep 26th, 2006 |
| Replies: 8 Views: 2,023 Thank you so much for your help! That definitely gives me a start! |
Forum: C++ Sep 25th, 2006 |
| Replies: 8 Views: 2,023 I appreciate your help. I honestly am new to C++. Ok...my first problem is with the deal method. I changed the deal method. It originally printed out all 52 cards in the deck. I'm not sure if... |
Forum: C++ Sep 25th, 2006 |
| Replies: 8 Views: 2,023 Well, apparently you've never heard of my school. Honestly, I am not lying. I have taken several Java classes, but I have never taken a C class. I have an hour long C++ class once a week. My... |
Forum: C++ Sep 25th, 2006 |
| Replies: 8 Views: 2,023 Huh? I'm not lying! Neither of those statements was a lie. I'm new to C++, and I'm completely lost. |
Forum: C++ Sep 25th, 2006 |
| Replies: 8 Views: 2,023 I'm completely new to C++, and my teacher gave us a card game to do for our first assignment. The card game has to deal a hand of five cards and determine whether or not it contains a flush, a pair,... |