If you're refering to www.fftw.org then you'll have to compile the fftw-library. Just follow the instructions in the manual .
Type: Posts; User: Sargnagel
If you're refering to www.fftw.org then you'll have to compile the fftw-library. Just follow the instructions in the manual .
http://www.fftw.org
I think, manmohan means the following:
The modulo operator % does not return a floating point value as you imply by writing 0.0.
From the ANSI C99 Standard:
number%2==0
Shiro, thank you very much for explaining your "OOP in C"-technique. That's exactly what I've been looking for.
I've been working on a new version of my scientific project for months. I am still in...
You're right. Now it's quite obvious to me why the code is valid indeed. And thank you for the link. :)
typedef struct info {
int x;
char name[10];
}info;
Hmmm ... I think this is invalid code. "info" two times ... that doesn't work.
This should be correct:
typedef struct {
The ANSI C99 standard already provides a boolean data type.
#include <stdbool.h>
bool/true/false
Another reason for me to migrate to Linux completely! If I remember correctly, Linux Kernel >=2.4 supports SSE ... I will check my Debian installation.
Thank you very much for your help, Codeplug!...
Does this mean I have to run the test program as an administrator?
W2k forces admin rights in order to use SSE instructions? That sounds crazy to me ....:confused:
I've just tried "run as" admin,...
This is my first try with GCC inline assembly. I followed an example from this paper (page 3) and wrote a small test program:
#include <stdio.h>
int main()
{
int i;
float a[4] = {2.0},...
I've never used complex numbers before, but wouldn't it be better to use the complex arithmetic built into the ANSI C99 standard?
<complex.h>
You must either allocate memory for your team names or just initialize the array of structures as follows:
teamType *teams = { {"Arsenal FC", 5, 0, 0},
{"Newcastle Utd", 5, 0, 0},
/* and...
http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html
The tutorial is for C++, but maybe it helps a little bit.
I love google! ;)
Here is a wonderful explanation including source code (I think it's Pascal) and animated GIFs. :)
http://www.cs.usask.ca/resources/tutorials/csconcepts/1998_6/bintree/2-2.html
Please, try searching the forum next time first. These standard questions have been asked many times before.
http://cboard.cprogramming.com/showthread.php?s=&threadid=17708&highlight=inorder
As already noted by XSquared use:
int main()
{
...
return 0;
}
int amount;
Aha! That makes sense to me.
That's good news. I thought about it yesterday, but didn't find the time to ask.
Thank you very much for your help, Prelude. :)
That explains the segmentation fault. So, a function pointer is a different beast?
Is the true implemenation of function pointers quite different from normal pointers?
@return NULL and function...
Dave, that's a neat implementation. I think it's easier to understand than my version.
Thanks alot! I will implement your solution.
@double comp:
Hmmm ... I didn't spend much time thinking about...
typedef makes life easier ;)
I am sure that nothing is wrong with my typedef of function pointers.
/* function pointers to comparison functions */
typedef int (*DoubleCompFunc)(double, double);
typedef int (*IntCompFunc)(int, int);
/* comparison functions */
static int cmp_lt(const double a,...
Oh, I thought the doctor prescribed you ibuprofen. I guess, it's time for a Doc. I hope it will not get worse!
...
...
I still wonder if I am actually able to type my thesis ... :(
@confuted:
@ibuprofen and swelling:
Okay, that's different! I don't have any visible symptoms. You may very well need the anti-inflamatory effect of ibuprofen! :eek:
@lurking on...
Welcome to the club ... :(
I would be careful with medicine. It may reduce the pain, but the root of all evil is still there! So, you may well increase the damage done to your forearm/hand,...