Quzah,
Sorry but thanks for correcting me.
Ive found some eeror in my program while compiling it. I hence have rewrite this part of the program.
When i run it, ive got this result...
0: 1
1:1...
Type: Posts; User: nicoleha
Quzah,
Sorry but thanks for correcting me.
Ive found some eeror in my program while compiling it. I hence have rewrite this part of the program.
When i run it, ive got this result...
0: 1
1:1...
I dont seem to compile it. Please help me to check and guide me through. Please. Help really needed.
Question:
Write a program to show the operation of the random number generator.
The program...
#include <stdlib.h>
#include <stdio.h>
#include <DBOS\LIB.h>
#include <CLIB.H>
void count_nums(int *a, int range, int num);
int my_rand(int);
int get_max(int *a, int s);
int get_min(int *a,...
Question:
Write a program to show the operation of the random number generator.
The program will generate a specified number of random numbers in a given range.
It will count the number of times...
#include <stdlib.h>
#include <stdio.h>
#include <DBOS\LIB.h>
#include <CLIB.H>
void count_nums(int *a, int range, int num);
int my_rand(int);
int get_max(int *a, int s);
int get_min(int *a,...
#include <stdlib.h>
#include <stdio.h>
#include <DBOS\LIB.h>
#include <CLIB.H>
void count_nums(int *a, int range, int num);
int my_rand(int);
int get_max(int *a, int s);
int get_min(int *a,...
error 313- function date_time_seed has not been declared( perhaps u should #include <DBOS\LIB.h>
error 313_function getch() has not been declared(perhaps u should #include <CLIB.h>)
Please help. Is...
Yes i did. What was wrog was that, they said
1) cannot compile.......- array on line 45 which is something inside the function void count-nums,
2) date_time_seed- i removed as u said, but warming...
Yea,
I did fix those variables. However it still cannot compile. The first two print parts did what it should do. But not after that. It doesnt produce the expected output. =(
salem,
thanks for ur help. I tried to recompile the program. However, it still couldnt work. Can someone please help me out?
Thanks.
Please help me check my prgram. I dont seem to run it.
Please view attachment.
Many thanks.
#include <DBOS\LIB.h>
#include <CLIB.H>
I was told to use those. I am compiling using Salford plato.
I couldnt run this program. Please help me out.
Question:
generate a random numbers in a given range
count the occurrences of each number and return the total in arry 'a'
find the maximum...
Hello,
I was told to create a program which can read numbers from the keyboard, print how many times it occurs and get the most and least number of occurrence printed as well. I've used the getch(),...