Search:

Type: Posts; User: Sargnagel

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    4,137

    If you're refering to www.fftw.org then you'll...

    If you're refering to www.fftw.org then you'll have to compile the fftw-library. Just follow the instructions in the manual .
  2. Replies
    4
    Views
    4,137

    http://www.fftw.org

    http://www.fftw.org
  3. Replies
    8
    Views
    2,695

    I think, manmohan means the following:

    I think, manmohan means the following:
  4. Replies
    7
    Views
    1,256

    The modulo operator % does not return a floating...

    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
  5. Thread: OOP in C

    by Sargnagel
    Replies
    4
    Views
    3,954

    Shiro, thank you very much for explaining your...

    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...
  6. Thread: typedef

    by Sargnagel
    Replies
    5
    Views
    1,024

    You're right. Now it's quite obvious to me why...

    You're right. Now it's quite obvious to me why the code is valid indeed. And thank you for the link. :)
  7. Thread: typedef

    by Sargnagel
    Replies
    5
    Views
    1,024

    typedef struct info { int x; char...

    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 {
  8. Replies
    4
    Views
    1,401

    The ANSI C99 standard already provides a boolean...

    The ANSI C99 standard already provides a boolean data type.

    #include <stdbool.h>

    bool/true/false
  9. Another reason for me to migrate to Linux...

    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!...
  10. Does this mean I have to run the test program as...

    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,...
  11. gcc inline asm: illegal instruction (core dump)

    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},...
  12. Replies
    10
    Views
    1,148

    I've never used complex numbers before, but...

    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>
  13. Replies
    5
    Views
    1,030

    You must either allocate memory for your team...

    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...
  14. Replies
    3
    Views
    822

    http://www.adrianxw.dk/SoftwareSite/Consoles/Conso...

    http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html

    The tutorial is for C++, but maybe it helps a little bit.
  15. Replies
    5
    Views
    1,194

    I love google...

    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
  16. Replies
    5
    Views
    1,194

    Please, try searching the forum next time first....

    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
  17. As already noted by XSquared use: int main()...

    As already noted by XSquared use:


    int main()
    {
    ...
    return 0;
    }

    int amount;
  18. Replies
    8
    Views
    1,922

    Aha! That makes sense to me. That's good...

    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. :)
  19. Replies
    8
    Views
    1,922

    That explains the segmentation fault. So, a...

    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...
  20. Replies
    8
    Views
    1,922

    Dave, that's a neat implementation. I think it's...

    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...
  21. Replies
    8
    Views
    1,922

    typedef makes life easier ;) I am sure that...

    typedef makes life easier ;)

    I am sure that nothing is wrong with my typedef of function pointers.
  22. Replies
    8
    Views
    1,922

    function pointer and void*

    /* function pointers to comparison functions */
    typedef int (*DoubleCompFunc)(double, double);
    typedef int (*IntCompFunc)(int, int);

    /* comparison functions */
    static int cmp_lt(const double a,...
  23. Oh, I thought the doctor prescribed you...

    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 ... :(
  24. @confuted: @ibuprofen and swelling: Okay,...

    @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...
  25. Welcome to the club ... :( I would be careful...

    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,...
Results 1 to 25 of 166
Page 1 of 7 1 2 3 4