You can take this course and study it yourself.
Type: Posts; User: Tommo
You can take this course and study it yourself.
LU Decomposition
I doubt you can do this. This gave me decimal 73. Nowhere in that link you provided does it say you can do this.
Yes, my apologies. At first glance his taylor function looked incorrect. Disregard my previous post.
Your taylor function doesn't look right to me. Maybe you need to refresh your memory.
Here's my quickly cooked up solution:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
...
//function to set up the list.
List *somelist( char word[], List *tl ) {
List *t = (List*) malloc (sizeof(List));
strcpy(t->word, word[LENGTH]) ;
t->next = tail;
return t;
}
And in...
fpLogFile = fopen(logFileName,"w");
Have you declared fpLogFile globally? If not, you need to declare it somewhere.
thanks brewbuck
Hi, I was just reading some article when I stumbled across this. It's making me question my knowledge of endianness. It says:
For example lets say we are going to store a 2-byte number
...
> Do I need to allocate memory for i?
No.
> p = (some_typ *)malloc(sizeof(p));
Don't cast malloc. Also i think you'll be wanting sizeof(struct some_type) (or sizeof(*p)).
> is it only for...
There must be some way. I haven't managed to do it, the attached code shows my attempt. Useless. Hopefully, someone with more experience will enlighten us.
Hmm good question. I'll have a little play with fork(), seems like it should work. If you're not bothered about which method to use, you should use select() to do this, the link even provides an...
Well, what do you think?
Lets look at a very simple example:
int a;
int b;
int add() {
return a+b;
}
Do you not mean "lseek in do_this: Illegal seek"?
Define the variables in main(), then pass them to the functions.
Without ncurses
Easy fix
Ye I think having a look at some examples will give you a better understanding. Qsort basically lets you sort data to the way you want (ascending,descending etc) by letting you pass your...
http://security-freak.net/raw-sockets/raw-sockets.html
http://packetstormsecurity.nl/programming-tutorials/raw_socket.txt
Yes, even though I havn't read it, it is regarded as the best book on...
Yes poll() or select() is what you're looking for.
OK, I think I have the gist of it. I played about with Beej's selectserver.c example and managed to create a server that pairs two clients together and they can exchange messages. Fairly simple. ...
Hi there.
I am attempting to write a simple game over a network. Have you ever seen the game 'Anagrammatic' before? Well it's that but simpler. Basically, a client connects to a server and the...
OK, got it working by changing 'pattern' to "class=\"results\">" and changing the function to:
int WordisinDictionary( char *buffer, char *pattern ) {
char *ptr;
int len;
if( ( ptr =...
Thanks matsp.
I realise why it doesn't work now. The pattern may not appear when I fill my buffer for the first time, say, so wordisindictionary() returns 1 and breaks from the loop, therefore...
@ Dave_Sinkula: Sorry I seem to have confused you. If the pattern matches then the word was not found, so if strstr( buffer, pattern ) is NULL, then the pattern was not found and so the word does...