Forum: Java Sep 29th, 2009 |
| Replies: 1 Views: 174 Technically this question isn't related to any specific language. Basically, what I need to do is extract information from a website relating to the current logged user.
The website has your... |
Forum: C Aug 9th, 2009 |
| Replies: 10 Views: 679 Thanks for all the help guys.
I got it working by returning the address to matrix however this isn't an ideal solution as I'd like to have the size of matrix as the return value. It's not a big... |
Forum: C Aug 9th, 2009 |
| Replies: 10 Views: 679 I'm a bit hesitant to post the code because it's for an assignment.
Nonetheless, I'll change it a bit and put it up here.
Here's the code in main():
//This is the array
int** matrix =... |
Forum: C Aug 8th, 2009 |
| Replies: 10 Views: 679 Hmm, I don't those are helping too much.
I ran a debugger and this is what I concluded.
When I pass in the the int** to the function I want to create it in, the address of it 0x1000. However,... |
Forum: C Aug 8th, 2009 |
| Replies: 10 Views: 679 *sigh* Malloc get's me every time...
Basically what I'm trying to do is read data from a file to populate a square array on integers.
I'm declaring the array as 'int** matrix' in main(). I pass... |
Forum: C May 15th, 2009 |
| Replies: 8 Views: 546 Thanks for the suggestion however I've already fixed the problem.
The issue didn't turn out to be in the code I pasted. While, in another function, I was malloc'ing some space for the Category... |
Forum: C May 13th, 2009 |
| Replies: 8 Views: 546 CategoryPtr is a pointer to a struct. It's the node that I want to add to the list.
Anyway, seeing as I'm assigning *cPtr to headCategory (as the first assignment) and then in the previousPtr... |
Forum: C May 13th, 2009 |
| Replies: 8 Views: 546 I'm going crazy. I've been trying to a linked list of a struct (which stores some strings and a character) however I've had no luck. It's just not working and I've been working on this for hours on... |
Forum: C Mar 9th, 2009 |
| Replies: 7 Views: 427 Thanks for the help but I'm still a bit confused.
Reading your post, option 1 seems like the best way to go. However, the way you implemented it is confusing. For example, why would you return... |
Forum: C Mar 7th, 2009 |
| Replies: 7 Views: 427 The problem is that it appears to be working. Will pointing to the first element of an array stop the memory from being unallocated (or whatever)?
While I have nothing against passing an array to... |
Forum: C Mar 7th, 2009 |
| Replies: 7 Views: 427 I was wondering if the following fuction is a safe way to get input from a user (with a specified length).
char *input(int inputSize)
{
char str[inputSize + 2];
/*DO STUFF HERE (i.e.... |
Forum: PHP Oct 7th, 2008 |
| Replies: 2 Views: 622 I figured it out through a fix on the internet. It was the session_start() that was causing the issue but replacing it with the following code block seemed to have fixed the issue:
//Needed to... |
Forum: PHP Oct 7th, 2008 |
| Replies: 2 Views: 622 It might be an issue with my laptop's IE6 although I haven't ascertained this.
Anyway, I'm having a really weird issue. When I open my website in IE6 and click on a link inside that page, the page... |
Forum: C++ Sep 25th, 2008 |
| Replies: 6 Views: 1,363 No, that line was never being used in my code (I just hadn't gotten around to removing it). The output on my small test files looked good and I've since used the compressed file with no issues so the... |
Forum: C++ Sep 25th, 2008 |
| Replies: 6 Views: 1,363 The issue seems to have been fixed. No idea why, but removing the
str = idNode + "\t";
seems to have fixed the segfault.
Thanks for the help, guys. |
Forum: C++ Sep 24th, 2008 |
| Replies: 6 Views: 1,363 Hey, I'm having trouble with this piece of code. Basically, it's meant to look at a map file (which basically is a bunch of URLs paired to an ID) and then go through another file and replace each URL... |