- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: Cho River/Chosan are from kroea. | |
Re: No one here uses Eclipse? For Eclipse: [url]http://www.eclipse.org/[/url] For pydev (python extension for Eclipse): [url]http://pydev.sourceforge.net/[/url] | |
Re: It could be the -----'s you have. Unless its commented in your actual code but not in the post. | |
Re: There are code snippets on daniweb. I just can't find it atm, gimme a sec to check. edit: Found it: [url]http://www.daniweb.com/code/[/url] | |
Re: Tthats not recursion. Heres a small example, counting down from a number to 1. [CODE] void recur(int x){ if(x == 0) return; cout<<x; void recur(x-1); }[/CODE] | |
For some reason netbean hates me, as well as eclipse. So i set cygwin as the compiler and debugger and everything, and tried a simple print statement and all i got was: The system cannot find the path specifiedProcess is started in an external terminal ... RUN FAILED Any help … | |
Re: Theres a problem with our count variable, you end up incremented everytime regarrdless if its the largest or not, and you never reset it to 0. [CODE] if (num > largest){ largest = num; count=1;} if(num == largest) count++; [/CODE] | |
So I was looking over someone elses code, and the main is unusual, no type. its just: #include <math.h> main(int argc, char *argv[]) I've come up with 2 theories: 1) It defaults to int? 2) #if/#endif directives somehow negate the need for int? Have no experience with this though, so … | |
So 2 questions. 1) MPI_Init. I'm trying a python -> c -> cluster project. So I have no problem with the python -> c, but the problem comes with the c-> cluster. I'm making a python wrapper (I believe this is the correct term) around a premade c driver for … | |
Re: The number of errors you have in code doesn't dictate how close you are to finishing. It can go from 1 error -> 12 errors -> working. | |
Re: I would also recommend commenting your code. In something such as this, its not needed, but as code you write starts to get bigger and bigger, comments are a must. | |
Re: Does TotalPoints need to be a function? If not, then just run through the array summing up everyone's score. [CODE] int main() { .... int sum = 0; for (int x_var = 0; x_var <NUM_PLAYERS ;x++) sum += players[x_var]; ... }[/CODE] | |
Re: Why is using namespace std typed 3 times? | |
I'm working on a little code snippet and my c++ seems a bit rusty. How do i go about getting the length of an array? My eclipse is giving me weird values when it should be segfaulting, so I'm trying to figure out whats wrong. Thanks in advance. edit: forgot … | |
Re: An alternative could be to use an array and later print out the specific pieces that you need. tux's method works a lot cleaner but if you need to pick different points the sequance for later, having it stored can be helpful. [CODE] int y = 2; int x = … | |
Re: If your in academia and your university pays for it, you can also use Safari Books online. [url]http://proquest.safaribooksonline.com/[/url] |