Forum: C++ Oct 16th, 2009 |
| Replies: 5 Views: 227 I use either g++ or make (to compile multiple files together). I'm programming this on a terminal on linux. |
Forum: C++ Oct 16th, 2009 |
| Replies: 5 Views: 227 I'm using pthread but no, I just forgot to paste in the #endif, it's there in my code. The errors I've posted are the only the ones I'm getting...
Not too sure as I am doing this on a... |
Forum: C Oct 15th, 2009 |
| Replies: 3 Views: 287 Thanks! :) And yeah, I'm actually having quite a hard time getting this right....
Also, you're most likely right since I received a bunch of gibberish from time to time now without the while... |
Forum: C++ Oct 15th, 2009 |
| Replies: 5 Views: 227 I want to use the string class in my program but I keep getting the following errors:
process.cpp:10: error: 'string' has not been declared
process.cpp:10: error: prototype for 'Process::... |
Forum: C Oct 15th, 2009 |
| Replies: 3 Views: 287 I've just started started socket programming so there's a few things I'm wondering about:
I found a set of socket programming codes here: ... |
Forum: C++ Oct 15th, 2009 |
| Replies: 7 Views: 321 Alright, thanks for letting me know! |
Forum: C++ Oct 13th, 2009 |
| Replies: 7 Views: 321 Thanks for pointing that out. I tired compiling it on my school's Linux computer and there wasn't a problem. I'm not sure whether our instructor is okay with us using pthreads-w32 so I'll have to ask... |
Forum: C++ Oct 13th, 2009 |
| Replies: 7 Views: 321 That sort of worked.... mutex.cpp doesn't have an error anymore but now I have an error message in mutex.h saying:
`pthread_mutex_t' does not name a type (on line 15)
as well as
pthread.h:... |
Forum: C++ Oct 13th, 2009 |
| Replies: 7 Views: 321 The codes our instructor provided for us has been giving me a "no such file" error message for the line #include <mutex.h> in the following code:
/*
* mutex.cpp
* scheduling
*
*/
... |
Forum: Java Dec 13th, 2008 |
| Replies: 6 Views: 774 Alright, thanks for your help. :) |
Forum: Java Dec 3rd, 2008 |
| Replies: 6 Views: 774 I didn't realize that I was using different command line arguments for A5Q5 and A5Q6 until now. So it seems that my code works fine for arrays of smaller lengths (such as 128) but not for arrays of... |
Forum: Java Dec 3rd, 2008 |
| Replies: 6 Views: 774 I'm working on a quick sort algorithm using recursion but it's throwing a stackOverflowError. Here is the code:
public static void quicksort(int [] A){
quickSortRec(A, 0, A.length-1);
}
... |
Forum: Java Nov 29th, 2008 |
| Replies: 2 Views: 413 Ah, can't believe I missed that... Thanks for all your help. My code's running fine now. :) |
Forum: Java Nov 29th, 2008 |
| Replies: 2 Views: 413 I am trying to create a heap sort method using recursion but whenever one of my methods called maxHeapify is called, it would throw a StackOverflowError. I understand that this error will pop up... |
Forum: Assembly Nov 11th, 2008 |
| Replies: 0 Views: 662 I'm having trouble with drawing squares on the x86 assembler using the XGA 8-bit linear frame buffer. I'm suppose to draw a large square containing a grid of smaller 12x12 squares using my own... |
Forum: Computer Science Oct 4th, 2008 |
| Replies: 4 Views: 1,146 The honest truth is, I don't know when an inequality sign or when an equal sign should be used. I'm struggling to understand algorithm analysis. I more or less understand the examples in my text book... |
Forum: Computer Science Oct 4th, 2008 |
| Replies: 4 Views: 1,146 I don't quite get it. (j+1) is the number of time the loop runs and n is the number of elements you have in the array so wouldn't substituting the n in mean running the loop (n+1) times? |
Forum: Computer Science Oct 3rd, 2008 |
| Replies: 4 Views: 1,146 I need help with finding a function T(n) that describes the upper bound for the worst case running time of this algorithm:
1. maxS = 0
2. n = A.length
3. for j from 0 to n − 1 do
4. ... |
Forum: Pascal and Delphi Nov 22nd, 2007 |
| Replies: 7 Views: 1,632 Sorry for such a late reply!
What I meant last week about the compiler only letting me use " was that when I have a sentence containg a word like can't, the compiler will only let me compile if I... |
Forum: Pascal and Delphi Nov 14th, 2007 |
| Replies: 7 Views: 1,632 I can't seem to find the edit button... but nevermind about what I said about ". I see what you mean, but strangely, the computer lets me compile the program. |
Forum: Pascal and Delphi Nov 14th, 2007 |
| Replies: 7 Views: 1,632 Thank you very much for taking the time to analyze my code! :) I found the paper method very useful and have revised my code. But now, I'm having a problem with my while-loop under convert...
By... |
Forum: Pascal and Delphi Nov 13th, 2007 |
| Replies: 7 Views: 1,632 Hello. I'm utterly stuck on this one part of my school assignment (for pascal). We are asked to make a calculator like program which calculates integer values only. The program has to read character... |