Search:

Type: Posts; User: lolcats22

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,458

    Wordcount of a file

    Hello, here is my code so far:


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

    #define empty 0
    #define mx 64
  2. Replies
    2
    Views
    9,909

    So I changed the c, d, e and all that business -...

    So I changed the c, d, e and all that business - now I'm getting that there's too few arguments to function 'trapeze'

    Why are there too few arguments?
  3. Replies
    2
    Views
    9,909

    Trapezoidal Rule for Integration

    Hi there, here is my code so far:



    #include <stdio.h>
    #include <math.h>


    float f(float x)
    {
  4. Replies
    2
    Views
    1,156

    Need some pointer help

    Hi,

    I have to write a program that takes the input of 3 numbers, and organizes them in a way that x < y < z. Here's what I have:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  5. Replies
    4
    Views
    1,051

    Thank you! It works fine now. edit: I also...

    Thank you! It works fine now.

    edit: I also changed the || to &&, and the program gives what I need now.
  6. Replies
    4
    Views
    1,051

    Ok, so I revamped my code a little bit: ...

    Ok, so I revamped my code a little bit:



    #include <stdio.h>
    #include <math.h>


    double function(double x);
  7. Replies
    4
    Views
    1,051

    Computing the value of a function

    Hi there,

    I'm having trouble getting the desired output. whenever I enter a number, my program just freezes and doesn't do anything. if it does do something, it's always the number I input. ...
  8. Replies
    6
    Views
    8,500

    the editing was not done before any messages were...

    the editing was not done before any messages were made, nor was it done to the actual code. it was merely to show that I needed a table that looks like the one in the first code box, since regular...
  9. Replies
    6
    Views
    8,500

    Thank you both, I was able to fix my problems and...

    Thank you both, I was able to fix my problems and get the table set up correctly.
  10. Replies
    6
    Views
    8,500

    Multiplication Table using loops

    Hi there,

    I need some help with formatting on my program. I can't seem to get the table to look like this:
  11. Replies
    16
    Views
    8,787

    Ok, I think I see what you're saying. When I'm...

    Ok, I think I see what you're saying. When I'm calling on the function in main, I don't wanna use things like "depth" or "celsius_at_depth" but rather things like "d" and "cel" - somewhat right?
    ...
  12. Replies
    16
    Views
    8,787

    Hello, I am having some problems with the same...

    Hello,

    I am having some problems with the same program too. Here is my code:



    #include <stdio.h>


    double celsius_at_depth(double depth);
  13. Thanks for the help. I was able to figure it out...

    Thanks for the help. I was able to figure it out and get the exact output I needed for homework.
  14. Declaring letters as variables and using them

    DISREGARD THIS POST, I FIGURED OUT MY MISTAKES. (I don't know how to delete threads lol)

    Ok, maybe the topic title could be misconstrued but I'll try explaining what I don't understand.

    So I...
  15. Replies
    4
    Views
    1,462

    Alright, thanks, I will check it out.

    Alright, thanks, I will check it out.
  16. Replies
    4
    Views
    1,462

    Ok, I changed my conversions, and everything...

    Ok, I changed my conversions, and everything seems to be working properly. Thank you.

    I just have one quick question (this isn't required for homework; I just wanna know how to do this): How do...
  17. Replies
    4
    Views
    1,462

    Help with my program

    Hello,

    I'm still quite new to programming, so bear with me if I am failing pretty hard.

    I have to write a program that asks for the input of two coordinates, (x,y), and will provide the output...
Results 1 to 17 of 17