oh ok...
Thank you all so much... I learned so much just by doing this one program... hehehehe
Thanks for the help...
Type: Posts; User: kamisama
oh ok...
Thank you all so much... I learned so much just by doing this one program... hehehehe
Thanks for the help...
oh cool... is that also part of c too???
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...
help please????
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>
...
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...
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++) {
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...
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...
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"
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
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)
{
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"
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...
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...
Really???
What did you do??
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
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....
still need help....
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...
I am still stuck...
all it did was generate the random list... but the maximum number is totally wrong....
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 :...