- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Programming, music, art, philosophy
- PC Specs
- Ubuntu 10.04 / Fedora 12 / Vista Rampage II Extreme Motherboard Intel Core i7 6GB Corsair DDR3 Ram 300GB…
10 Posted Topics
Re: It doesn't really matter which distro you use, because the kernel is what contains the drivers that will support your hardware, so the hardware you have shouldn't be your deciding factor. My suggestion is just pick a distro and try it. Don't worry too much about which one you start … | |
Re: i was able to compile it by just fixing the syntax errors replace the period with a semicolon after endl [code] cout << "The Blackjack Program is starting" << endl. [/code] this if statement is missing opening curly braces [code] if ( ((cardchar >= '2') && (cardchar <= '9')) || … | |
Re: well, because you didn't post any code and it sounds as if you already know how to retrieve lines from a file, I'm going to assume you are storing them in a string variable. So now you just need to break the string up correct? I suggest you start by … | |
Re: your function definitions: [CODE] bool checkboardX(char board[][num_colm], int num_rows) { ... bool checkboardO(char board[][num_colm], int num_rows) { [/CODE] need to match your prototypes which have board capitalized, so they should be writen as: [CODE] bool checkBoardX(char board[][num_colm], int num_rows) { ... bool checkBoardO(char board[][num_colm], int num_rows) { [/CODE] case-sensitivity is … | |
Re: As Gerald said, you have declared an array of ints not floats. You should be able to figure that out by yourself. Here is an example for loop that you can learn from: [code] #include <iostream> using namespace std; int main() { int Example[10]; // you want to declare this … | |
Re: Well I can tell you that in C++ I prefer 0 to NULL [url]http://www2.research.att.com/~bs/bs_faq2.html#null[/url] | |
Re: Without any code to show I can only give you some hints: For part A, I don't know how well your generator should perform. I suggest you first look up rand(), then if you want to improve your program follow up by researching srand() and then maybe mersenne twister or … | |
Re: Are you showing us the part of your code that works? Because I don't see any problems. you entered nothing followed by the return key signaling a new line meaning an empty string was placed in w1, it then went on to capture the next line where you entered in … | |
Re: I'm not exactly sure what outcome you are looking for, but I immediately see a problem with your arrays. judging from your loop: [code] for (a = 0; a <= 2; a++) { cout << "Please enter the amount and the tax (0.XX form) for Tax Bracket " << a+1 … | |
Re: remove the semicolon after (numbers <= 1000) as well as all the semicolons after the closing braces in your if statements I believe you're attempting this: [code] #include <iostream> using namespace std; int main() { int numbers; numbers = 2; while (numbers <= 1000) { if (numbers % 2 ==0){cout<< … |
The End.