Search:

Type: Posts; User: petermichaux

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I don't really understand what you are supposed...

    I don't really understand what you are supposed to be doing with the 2D array but

    for( ren=0;ren<b;ren)

    should probably be

    for( ren=0;ren<b;ren++)

    and this happens in two places.
  2. Fibonacci

    I did a google search for "fibonacci recursive" and found a good pdf.

    www.comp.leeds.ac.uk/cs12/Handouts/9-Fibonacci.pdf

    Then I wrote the following code that seems to work just fine.



    ...
  3. Replies
    6
    Views
    1,435

    Please try to explain what you mean by "then i...

    Please try to explain what you mean by "then i have a list of test file". That doesn't mean anything to me.
  4. Replies
    1
    Views
    1,126

    Database / Tex

    I'm sure some of this program will be in C++ so...

    I'd like to write a program that automatically produces tex files for high school math test. This involves having a database of questions and...
  5. Replies
    3
    Views
    1,472

    I did check google and always do. Should I state...

    I did check google and always do. Should I state that at the top of a new question? It is not easy to find C code for the inverse error function.

    -Peter
  6. Replies
    3
    Views
    1,472

    z-distribution function in C

    I'm doing some simple confidence interval statistics. I need to calculate normal curve areas. Where can I find a C function that calculates the z-distribution?

    Thanks,
    Peter
  7. Replies
    2
    Views
    1,357

    Thanks for the reply. Great info! I'll try to...

    Thanks for the reply. Great info! I'll try to install gpof and try it out.

    Peter
  8. Replies
    2
    Views
    1,357

    fast code?

    Where can I read about writing faster C code.

    For example, today I saw in a book something about the type double_t that is defined in c99. Apparently this type is optimized for floating point...
  9. Replies
    5
    Views
    2,259

    I don't know which books are good for learning C....

    I don't know which books are good for learning C. However, I've heard warning against anything written by Schlidt(sp?). Apparently lots of errors.

    As far as I know, the standard two C reference...
  10. Replies
    3
    Views
    994

    Please post a sample of the text file too.

    Please post a sample of the text file too.
  11. Replies
    6
    Views
    1,162

    I was confused because I saw some text that had...

    I was confused because I saw some text that had the operator new[] in a discussion about overloading. I thought this would appear in a statement like
    int *ip = new[] int[100];.

    Now I realize that...
  12. Replies
    6
    Views
    1,162

    I was more interested in the placement of the...

    I was more interested in the placement of the keyword inline.

    I will switch my destructor to be


    ~Matrix() {delete[] mat;}

    I thought that maybe delete was used with new and that delete[]...
  13. Replies
    6
    Views
    1,162

    constructors and qualifiers

    Hi,

    After years of C programming, I'm starting to learn C++ and am amazed at the number of keywords and how much more complex the syntax is. It is becomming clear to me that C++ is meant for big...
  14. Replies
    8
    Views
    2,932

    It sounds to me like you are doing the perfect...

    It sounds to me like you are doing the perfect thing. Get the theory from school and since they don't teach the practical part you are looking for you are getting that yourself. But like some others...
  15. Replies
    8
    Views
    1,448

    I'm taking a guess at what you are trying to do....

    I'm taking a guess at what you are trying to do. The following works.



    #include<stdio.h>
    main()
    {
    int x,y;
    int *p,*q,a;
  16. Replies
    8
    Views
    5,338

    I would do what Walt says. Just incase you need...

    I would do what Walt says. Just incase you need more direction:

    I didn't run the code below but you'll need lines like it.

    You have to make sure that the fname character array is plently long...
  17. Replies
    5
    Views
    1,245

    I think the book called Numerical Recipies talks...

    I think the book called Numerical Recipies talks a lot about this

    in the following link scroll down to chapter 7 to read the pdf files

    http://www.library.cornell.edu/nr/bookcpdf.html

    -Peter
  18. That code works perfectly for me when compiled...

    That code works perfectly for me when compiled with DevC++/gcc
  19. Getting code handed to you probably isn't the...

    Getting code handed to you probably isn't the best way to learn but here you go. The code may have bugs so don't blame me if you get an F. (N.B. This code will say that zero is even.)



    #include...
  20. Replies
    12
    Views
    2,300

    I followed the instructions in the...

    I followed the instructions in the CurrencyCalculator tutorial exactly. I don't know much/anything beyond that. On my computer the tutorial starts with
    ...
  21. Replies
    12
    Views
    2,300

    I think MS Visual C++ has a interface builder....

    I think MS Visual C++ has a interface builder. That might even be what "visual" stands for in the name. I never have figured out this visual basic, visual C++ naming system. Anyway, I think the guy...
  22. Replies
    12
    Views
    2,300

    Are you using Windows XP, Mac OS X, Linux? I...

    Are you using Windows XP, Mac OS X, Linux?

    I just learned how to make a simple GUI on a Mac with the Interface Builder. It was very easy to create fields and buttons.

    I do some genetic...
  23. Replies
    2
    Views
    932

    #include #include int...

    #include<stdio.h>
    #include<string.h>

    int main(void)
    {

    char name[31] = "Hello Teri";
    FILE *fpwrite;
    int i;
  24. Replies
    10
    Views
    2,794

    If I remember correctly, when I had Caldera...

    If I remember correctly, when I had Caldera OpenLinux on my computer years ago I used a text editor called kwrite. I thought it was easy to use for programming. I think it automatically indented and...
  25. Replies
    4
    Views
    2,462

    I'm not sure I understand what you mean by biased...

    I'm not sure I understand what you mean by biased random number or influenced. Do you want more of the generated numbers to be in a certain region from 1 to 44. For example, do you want something...
Results 1 to 25 of 46
Page 1 of 2 1 2