What is wrong with my type defination/randomization program?
By the way, this isn't a serious project. I'm just playing around with C++. I barely use typedef and/or #define. I'm just testing it out. Also, I know very little about pointers but I thought I knew enough to do this.........take a look:
#include <iostream>
#include <conio.h>
#include <conio.c>
#include <string.h>
#include <time.h>
typedef unsigned int digit;
int randomize();
digit *number;
void main()
{
digit i, j;
for (i=0;i<=6;i++) {
randomize(); }
cout << "\n";
while (j < 10) {
j++;
cout << j << ", "; }
getch();
}
int randomize()
{
srand(time(NULL));
number=rand() % 25;
cout << number << endl;
return number;
}