Search:

Type: Posts; User: Niz

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    6,076

    genius!! ,your right , thank you!!!!! now...

    genius!! ,your right , thank you!!!!!

    now that i know the problem i think i will do this from now on


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

    float my_func(float A, float B, float C)
    {
  2. Replies
    20
    Views
    6,076

    vart you told me that putting my_func() would...

    vart you told me that putting my_func() would work but it does not!

    ive had to use my_func(A, B, C) but does not work when the program is running says theres an error and the error is as before...
  3. Replies
    20
    Views
    6,076

    thanks yeh it does work and so did my old code...

    thanks yeh it does work and so did my old code theres was something wrong with the software/compiler it actually crashed on me just now. Now I restarted it and now the old and your new code (the...
  4. Replies
    20
    Views
    6,076

    yeh im just working on using functions im just...

    yeh im just working on using functions im just practising but even your method returns no value i get 0 as the area


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

    main()
    {
    float a,b,c,s,area;...
  5. Thread: Huge Array Problem

    by Niz
    Replies
    26
    Views
    2,502

    well i dont know about unsigned ive only learnt...

    well i dont know about unsigned ive only learnt about signed but the range of signed is -+32,768 for int

    you should use float.
  6. Replies
    20
    Views
    6,076

    but it says 3 arguments are required and if i put...

    but it says 3 arguments are required and if i put in

    my_func(float A, float B, float C)

    it says float found where operator expected

    so here it is so far, pls bear with me im trying

    ...
  7. Replies
    20
    Views
    6,076

    i know that bit i just dont know what to put in...

    i know that bit i just dont know what to put in the main body?


    printf("Area = %f\n",/*HERE*/);

    normally it would be just my_func() but that wouldnt work in this situation.
  8. Replies
    20
    Views
    6,076

    im trying!, how can i return the statement? i...

    im trying!, how can i return the statement? i only know how to return a statement if it involves 1 calculation.


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

    void my_func(float *R, float A, float B,...
  9. Replies
    20
    Views
    6,076

    ok i changed it but now the problem is within the...

    ok i changed it but now the problem is within the compiling


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

    void my_func(float *R, float P, float A, float B, float C)
    {
    P = ((A+B+C)/2);
    *R =...
  10. Replies
    20
    Views
    6,076

    help: function, find area of triangle

    simply finding the area of a triangle this is how i want to do it and the compiler says its all good to go but it fails after i enter the three values, and says the problems in the lines shown in an...
  11. Replies
    12
    Views
    7,428

    ok no worries ive sorted it out, for future...

    ok no worries ive sorted it out, for future browsers heres the solution :) simple short and sweet.


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

    void my_func(float ang,float* r, float* s, float* c,...
  12. Replies
    12
    Views
    7,428

    Salem i don't understand what problem you are...

    Salem i don't understand what problem you are solving? but im guessing its, not using global variables, i tried it and the compiler says 'my_func' requires no argument, i take it its to do with the...
  13. Replies
    12
    Views
    7,428

    maybe i just need to understand pointers better...

    maybe i just need to understand pointers better but i just cant understand the point of pointers, they examples given are so simple there's no need for them, here's what i have done without pointers,...
  14. Replies
    12
    Views
    7,428

    Help creating function of sin cos and tan

    i need to create a function that will convert an user input angle into all three sin cos and tan and display, i can do this without pointers and creating separate functions for each sin cos tan, but...
Results 1 to 14 of 14