Search:

Type: Posts; User: xstudent

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    14,326

    here is the full code but still give me 0 as...

    here is the full code but still give me 0 as minimum??????



    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>
    #define NROWS 20
    #define NCOLS 3
    #define STATECOL 0
  2. Replies
    8
    Views
    14,326

    negative values not allowed in the array and the...

    negative values not allowed in the array and the element inside the array of arr all of type double

    could you please give me an example of how to use 2 loops one to get the first...
  3. Replies
    8
    Views
    14,326

    well i dont need to know how many zerow i have i ...

    well i dont need to know how many zerow i have i need to know what is the minimum value in my array which is not zero. ie if my array contains
    (0,1,2,5,8,9,10,0,2,0,0,1,2) my min will be 1 as ...
  4. Replies
    8
    Views
    14,326

    finding non-zero minimum in array

    i have an array (d_available[i])with some zero elements and non zero elements i want to find the minimum of the non zero elements (min_available)

    this is what i thought will work but still gives...
  5. Replies
    3
    Views
    3,199

    finding minimum in array

    i have an array (d_available[i])with some zero elements and non zero elements i want to find the minimum of the non zero elements (min_available)

    this is what i thought will work but still gives...
  6. Replies
    13
    Views
    2,354

    :( my code dosent even generate the random...

    :( my code dosent even generate the random numbers coz this is what i got when i added the line


    for (i = 0; i < range; i++) printf ("%d:%d\n", i, a[i]);


    0:0
    1:0
    2:0
    3:0
  7. Replies
    13
    Views
    2,354

    i tried to do this > find_max(a,num) using...

    i tried to do this
    >
    find_max(a,num)
    using num not s this time

    also

    for(i=0; i<(num); i++){
    a[i]=0;}
    for(i=0; i<num; i++)
  8. Replies
    13
    Views
    2,354

    the output shold be the number of times that the...

    the output shold be the number of times that the maximum occures and the number of times that the minimum occures in the random numbers generated but i am getting zeros all the time ??

    can anyone...
  9. Replies
    13
    Views
    2,354

    thanx i fixed the error but still has a warning...

    thanx i fixed the error but still has a warning says ( s has been used but never given a value) i know that s should be the size of the arry 'a' but i dunno how can i assign a value for s . also when...
  10. Replies
    13
    Views
    2,354

    many thanx to sean345 here is my full code but...

    many thanx to sean345 here is my full code but again i
    cant fix the error it will be great help if sean345 or someone else can help me with it


    code:


    #include <stdlib.h>
    #include...
  11. Replies
    13
    Views
    2,354

    sorry but i just tried to run the programme and i...

    sorry but i just tried to run the programme and i got an error message :



    function pic has not been declard in the line
    pic(a,range,num);


    i am using a compiler called Salford Plato
  12. Replies
    13
    Views
    2,354

    thanx alot i will try and do the rest 2moro and...

    thanx alot i will try and do the rest 2moro and post it if i had any problem

    thanx again
  13. Replies
    13
    Views
    2,354

    programming with random numbers

    hi
    i am writting a prgrame to do the following
    generate a random numbers in a given range
    count the occurrences of each number and return the total in arry 'a'

    find the maximum integer in the...
Results 1 to 13 of 13