Search:

Type: Posts; User: curious

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,156

    Sorry, that was from last year. I totally forgot....

    Sorry, that was from last year. I totally forgot. But my professor didn't suggest me to use that way. Anyway thanx for reminding.
  2. Replies
    9
    Views
    1,156

    any help?

    any help?
  3. Replies
    9
    Views
    1,156

    d, dx, dy, dz are all defined as double. the...

    d, dx, dy, dz are all defined as double. the program calculates the value of d using above given formula and compares with 1.0. if value of d is less than 1.0 then the program execute the things...
  4. Replies
    9
    Views
    1,156

    Question about comparision

    here d is defined like this way:


    d = dx*dx + dy*dy + dz*dz;
    if (d <1.0)
    {
    do something
    }

    when d = 1.0 my program should execute the things inside the if condition but it does. I am...
  5. Replies
    17
    Views
    3,140

    @tabstop :defined it but it didn't work

    @tabstop :defined it but it didn't work
  6. Replies
    17
    Views
    3,140

    ok the basic structure is : #define .........

    ok the basic structure is :


    #define ......

    int main()
    {
    }

    bool func() /**bool is taken care of and works fine**/
  7. Replies
    17
    Views
    3,140

    @tabstop: how to do it then?

    @tabstop: how to do it then?
  8. Replies
    17
    Views
    3,140

    I have also called the same function in main and...

    I have also called the same function in main and it's works fine but when i tired to call it in a subroutine it didn't work at all
  9. Replies
    17
    Views
    3,140

    #define a(r) (-4.0)*(1.0/(r))*((1.0/(r))-1.0) ...

    #define a(r) (-4.0)*(1.0/(r))*((1.0/(r))-1.0)

    And there is subroutine
    which uses this function

    tot = tot + a(r);
  10. Replies
    17
    Views
    3,140

    r is double and i mistype it i don't have ";" in...

    r is double and i mistype it i don't have ";" in my real code and 4 is 4.0 and 1 is 1.0 is my code. I am just trying to this pseudofunction .
  11. Replies
    17
    Views
    3,140

    r is double and i mistype it i don't have ";" in...

    r is double and i mistype it i don't have ";" in my real code and 4 is 4.0 and 1 is 1.0 is my code. I am just trying to this pseudofunction .
  12. Replies
    17
    Views
    3,140

    Problem with defining function

    ok here's what i have done;

    #define a(r) ((4)*(1/r)*(1-(1/r)));

    using it like this:

    tot = tot + a(r);

    But while compiling i get :
  13. Thread: Boolena in C?

    by curious
    Replies
    10
    Views
    1,601

    thanx a lot

    thanx a lot
  14. Thread: Boolena in C?

    by curious
    Replies
    10
    Views
    1,601

    how to use _Bool?

    how to use _Bool?
  15. Thread: Boolena in C?

    by curious
    Replies
    10
    Views
    1,601

    Boolena in C?

    How to declare boolena in C?

    I tired to do

    bool a;

    And it didn't work for me gave

    'bool' undeclared (first use in this function) , while compiling.
  16. Thread: C subroutine

    by curious
    Replies
    2
    Views
    3,108

    C subroutine

    If i have declared void test( p, a, b, c, n) as a subroutine, how to call that subroutine in main program?

    Thank you in advance.
  17. Replies
    8
    Views
    1,548

    thank you, I was being foolish due to time...

    thank you, I was being foolish due to time pressure. I really appreciate your help .
    this is really good place to start programming.

    Thank you again.
  18. Replies
    8
    Views
    1,548

    that is what i am doing? i can't change...

    that is what i am doing? i can't change fahrenheit inside the loop. the user should be able to do it.
  19. Replies
    8
    Views
    1,548

    looping didn't work at all. I am getting into...

    looping didn't work at all. I am getting into infinite loop.
  20. Replies
    8
    Views
    1,548

    i tired while didn't work. Can you please write...

    i tired while didn't work.
    Can you please write the whole main function?
  21. Replies
    8
    Views
    1,548

    A novice programming question...

    I am trying to learn java. I know this place is for C but i really did not find other site to get help on java. So, i am hoping on you guys.

    Problem: If the value of temp is < than 300, then the...
  22. Replies
    7
    Views
    1,644

    I did : float d ; if (d< 1.0f) it worked

    I did :
    float d ;
    if (d< 1.0f)
    it worked
  23. Replies
    7
    Views
    1,644

    yes i print it.

    yes i print it.
  24. Replies
    7
    Views
    1,644

    overlap=0; for (k=0; k

    overlap=0;
    for (k=0; k<N-1; k++)
    {
    for (j=k+1; j<N; j++)
    {
    dx = fabs(x[k] - x[j]);
    if (dx > L/2.0){ dx -=L;}
    dy = fabs(y[k] - y[j]);
    if (dy > L/2.0){ dy -=L;}
    dz =...
  25. Replies
    7
    Views
    1,644

    a problem with if

    if (d < 1.0)
    {
    overlap=1;
    break;
    }


    I have a problem with above code. my program terminates as soon as the value of d gets 1.000000. But it should terminate only if d < 1.0
Results 1 to 25 of 56
Page 1 of 3 1 2 3