Search:

Type: Posts; User: sam...

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    6,377

    Sorry about that! I tried to make the formatting...

    Sorry about that! I tried to make the formatting clearer and did the opposite of what I intended to, I guess! The formatting should be okay now. Thanks.
  2. Replies
    4
    Views
    6,377

    Calculating Integral; Please help!

    Hi! These are the instructions:

    Write a program which calculates the integral of the function

    f(x)=A*exp(-x^2)+(B*x^n)/m!

    on the interval from a to b (0<a<b). In the...
  3. When I put (0), I got: error: macro "getchar"...

    When I put (0), I got:

    error: macro "getchar" passed 1 arguments, but takes just 0

    So I left it blank: getchar()

    I don't know if that's right but it compiled and I got in the assignment...
  4. Thanks so much! That clarifies a lot. :) So I...

    Thanks so much! That clarifies a lot. :)

    So I wrote the program and it compiled but it wouldn't run for some reason.
    Then I realized that I needed to edit this:



    printf("Enter a character...
  5. Thank you!! Is there any specific way to use...

    Thank you!!
    Is there any specific way to use getchar() ?
    Is that kind of like scanf?
  6. C Program to evaluate y=exp(x); Novice, HELP PLEASE!! :)

    Hi! I have written a part of the program but don't know if I'm going in the right direction. I was also wondering how to use getchar() because I've never used that before. I'm quite a novice at this...
  7. Thread: void poly_diff

    by sam...
    Replies
    1
    Views
    998

    void poly_diff

    When I try to compile this, I get a warning:



    void
    poly_diff(int *d, double **p) {

    /*
    * poly_diff(int *d, double **p)
    * differentiates the polynomial (d, p)
  8. Replies
    10
    Views
    8,026

    It's a file (libpoly.a) that was provided by him...

    It's a file (libpoly.a) that was provided by him that I was instructed to copy into my own directory.
    Here are his statements regarding this:



    To compile my program (final.c) with libpoly.a,...
  9. Replies
    10
    Views
    8,026

    Thank you!! That makes this so much more clear! ...

    Thank you!! That makes this so much more clear!

    I was wondering: what is the command to open a library file?
    Our instructor provided us with access to one (for the functions) but i don't know how...
  10. Replies
    10
    Views
    8,026

    Thank you so much! I think this should work. :)...

    Thank you so much!
    I think this should work. :)

    What is free(p)?
    I've never used it before..
  11. Replies
    10
    Views
    8,026

    Reading a polynomial...

    Help please! I'm writing the main part of a program that utilizes several functions (in various files); I think I've got the functions (like poly.c that's mentioned here) but I'm confused about this....
  12. Replies
    11
    Views
    2,215

    Just because I asked at the last minute doesn't...

    Just because I asked at the last minute doesn't mean I didn't have work done beforehand.
    I was simply asking for suggestions and clarifications; I didn't want to post my work online because of the...
  13. Replies
    11
    Views
    2,215

    Thank you so much! I figured out how to write the...

    Thank you so much! I figured out how to write the 3 functions...now I'm just having trouble with the main() part. Please let me know if you have any suggestions; meanwhile, I'll keep working on it.
    ...
  14. Replies
    11
    Views
    2,215

    I'm not asking anyone to do my work for me...I...

    I'm not asking anyone to do my work for me...I just need some guidance.
    I prefer to do my own work anyway.
    I just don't understand what mat_vec_mult even is...and how it would perform the product...
  15. Replies
    11
    Views
    2,215

    Thank you. So I don't need the "void" part? But...

    Thank you. So I don't need the "void" part?
    But the prompt says that the prototype of the function called mat_vec_mult has to look like:


    void
    mat_vec_mult(double A[], int m, int n,
    ...
  16. Replies
    11
    Views
    2,215

    beginner; need help with Vectors & Matrices

    I have to write a C program for a class; due at 9 pm tonight.
    I have absolutely no idea how to get started on this.
    I've worked with arrays and matrices to some degree but I don't have much...
  17. Thank you all so much!! I finally compiled the...

    Thank you all so much!!
    I finally compiled the program and submitted it. :)
  18. I was wondering... You haven't used "fprintf" or...

    I was wondering...
    You haven't used "fprintf" or "fgets". Will it still work?
  19. Sorry about that. I was confused because I didn't...

    Sorry about that. I was confused because I didn't really understand argc and argv at the time.
    I think it makes more sense now.
    I'll work on it some more. Thank you!

    Adak, thank you for your...
  20. It is definitely starting to make more sense and...

    It is definitely starting to make more sense and the examples help.
    Thank you both so much!!

    I think I understand argc but I'm still a bit confused about argv.
    Also, how would I get the program...
  21. I know about them but I don't fully know how to...

    I know about them but I don't fully know how to use them.
    I believe I have to use "cat" as well....this would help me combine the files, right?

    Here's what I have now:

    #include<stdio.h>...
  22. program that reads several files & writes concatenated contents into file

    I'm not really sure what this is asking me to do. Please help!
    DUE at 9pm and I have no clue what to do.
    I'll keep working on what I have though..
    (see at end of post)


    In this quiz you will...
  23. Replies
    2
    Views
    1,304

    By the way, this is what i have so far. I don't...

    By the way, this is what i have so far. I don't know how correct it is. I'm a newbie at this!:


    #include<stdio.h>
    #include<math.h>
    #include<stdlib.h>
    #include<time.h>
    int main()
    {
    ...
  24. Replies
    2
    Views
    1,304

    c programming help!

    PLEASE HELP!!
    Here's what I have to do:


    In this program, you will compute a two-dimensional integral by using a
    simplistic version of the Monte Carlo Method. This method relies on
    random...
Results 1 to 24 of 28
Page 1 of 2 1 2