Search:

Type: Posts; User: Default99

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,870

    Rand function

    I'm trying to generate numbers between -1 and 1 using the rand() function so i can pass random values to the two members of N structs but the program prints the same values N times. Any advice?

    ...
  2. Hmm... I'm definitely doing something wrong here,...

    Hmm... I'm definitely doing something wrong here, The f3 function is supposed to return the index of the largest magnitude out of the array of magnitudes ,but when i enter a random N at the beginning...
  3. thanks a lot man ,really helped me out. One more...

    thanks a lot man ,really helped me out. One more question though: is there a way i can print the number N which shows the position of that struct in the array? (the struct that describes the number...
  4. dynamic array of structs and accessing members of a struct

    How can i access some members of a struct, which is contained in a dynamic array of structs?
    For example : From a N sized dynamic array of structs which contain the real and imaginary parts of a...
  5. Replies
    2
    Views
    1,832

    One more problem that needs help

    hey there again guys,
    Sorry for the long post:
    i'm trying to make a function that prints the 25th, 50th, and 75th percentile of an array of numbers..For example if the array is (3, 6, 7, 8, 8, 10,...
  6. Replies
    8
    Views
    1,650

    thanks for the anwers everybody I got it.The void...

    thanks for the anwers everybody I got it.The void function has to be before main and the warnings don't show up
  7. Replies
    8
    Views
    1,650

    Void Function Problem help

    I've got a problem with the bubble sort function:


    void bubble_sort(long [],long);


    int main()
    {
    long array[100], n, c, d, swap;
Results 1 to 7 of 7