Search:

Type: Posts; User: kamisama

Search: Search took 0.00 seconds.

  1. Replies
    42
    Views
    7,116

    oh ok... Thank you all so much... I learned so...

    oh ok...
    Thank you all so much... I learned so much just by doing this one program... hehehehe
    Thanks for the help...
  2. Replies
    42
    Views
    7,116

    oh cool... is that also part of c too???

    oh cool... is that also part of c too???
  3. Replies
    42
    Views
    7,116

    thank you so much!!! Only one question though......

    thank you so much!!!
    Only one question though...
    how does this part works??


    int compare( const void *a, const void *b )
    {
    const int *x = a, *y = b;
    return *x > *y ? 1 : *x < *y ? -1...
  4. Replies
    42
    Views
    7,116

    help please????

    help please????
  5. Replies
    42
    Views
    7,116

    ok I searched the forum... and followed some of...

    ok I searched the forum... and followed some of the examples... but somehow it only prints out a list of 0....

    heres what I did:


    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    ...
  6. Replies
    42
    Views
    7,116

    ok... I see what you did now... it was to set...

    ok... I see what you did now...
    it was to set the upper and lower limits...
    Just one final question...
    is it possible to use like a quick sort or a bubble sort for the random list??

    thank you...
  7. Replies
    42
    Views
    7,116

    ok I understand most of the program... and what...

    ok I understand most of the program... and what you did...
    but can you explain to me how these 2 part works??



    ranges[rand_value / 100]++;



    for (i = 0; i < 10; i++) {
  8. Replies
    42
    Views
    7,116

    ok.... I got my program to work with all the if...

    ok.... I got my program to work with all the if statements and stuff...
    But how do I put it in an array now??
    Here's what I have so far...


    #include <stdio.h>
    #include <stdlib.h>
    #include...
  9. Replies
    42
    Views
    7,116

    yeah... arrays are a whole bunch of thing groups...

    yeah... arrays are a whole bunch of thing groups under one name... or something like that....

    But I dont know how to set it up though...
    I was thinking of doing it in an array... because is less...
  10. Replies
    42
    Views
    7,116

    this is my code right now... #include...

    this is my code right now...


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

    #define DATA_FILE "c:\\test_data.txt"
  11. Replies
    42
    Views
    7,116

    I did that and the output is still the same. ...

    I did that and the output is still the same.
    This is the output:

    This is the number of values: 11
    905
    149
    781
    952
    377
    882
  12. Replies
    42
    Views
    7,116

    In this part it gives me some wierd number for...

    In this part it gives me some wierd number for the number of records...


    /count where the value is
    if (rand_value < 100)
    {
    one_hun++;
    }
    if (rand_value < 200)
    {
  13. Replies
    42
    Views
    7,116

    ok I did something like this... #include...

    ok I did something like this...



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

    #define DATA_FILE "c:\\test_data.txt"
  14. Replies
    42
    Views
    7,116

    oh ok... I see whats wrong... I fixed it and the...

    oh ok... I see whats wrong... I fixed it and the program works!!
    Thank you all so much!!!

    But now I have another problem....
    I want to find the total number of numbers between so and so...
    how...
  15. Replies
    42
    Views
    7,116

    oh ok... I see what you did.... Ok... my program...

    oh ok... I see what you did....
    Ok... my program now works after some modification... including the string part...
    this is what I have...


    #include <stdio.h>
    #include <stdlib.h>
    #include...
  16. Replies
    42
    Views
    7,116

    Really??? What did you do??

    Really???
    What did you do??
  17. Replies
    42
    Views
    7,116

    I did what you say but it ended up printing only...

    I did what you say but it ended up printing only the last number from the list...
    this is the ouput file:

    763
    173
    228
    544
    761
    4
    15
  18. Replies
    42
    Views
    7,116

    Ths string I used is to limit the number of...

    Ths string I used is to limit the number of results ....
    the user can input up to 7 numbers... but it will only take 3....
    for Ex. 1234567 is the input number the user, it will only take 567....
  19. Replies
    42
    Views
    7,116

    still need help....

    still need help....
  20. Replies
    42
    Views
    7,116

    ok... this is what I have now... it generates...

    ok...
    this is what I have now...

    it generates a random list...
    suppose to count the number of files on that list...

    and print the max and min only once...
    but somehow it prints until the...
  21. Replies
    42
    Views
    7,116

    I am still stuck... all it did was generate the...

    I am still stuck...
    all it did was generate the random list... but the maximum number is totally wrong....
  22. Replies
    42
    Views
    7,116

    Counting number from a random file

    Hi!! I am a newbie at C programming, and I need help wih my program...
    I am suppose to write a C program that opens up the generated file and produces a report that looks like:
    Number of records :...
Results 1 to 22 of 22