Programming Questions

I have many ideas for programming projects, but here are some questions:

  1. What programming language should I use?
  2. How do I get stuff to be done randomly?
  3. Where’s a free compiler?

You have already asked these same questions multiple times on multiple threads. On the last thread people gave you a lot of advice on these thing. Did you not take action? or even read them?

Well, anyways, here it goes again.

1.) C or C++

2.) Stuff? What is stuff? Randomness, as in numbers, is easy. But I don’t know about stuff.

3.) GCC

I’ll get to randomness later.

Is GCC free, and if so, where can I find it?

GCC is free, but I’ve never used it on windows, which is what I assume your using. I think through cygwin or something maybe. The book I have for C++ came with a free compiler (for windows) to go along with it. Actually, I believe it may have been GCC. But since then I have totally switched to Linux, so I no longer bother with windows compilation.

  1. C++

  2. Looky:


#include <iostream.h>
#include <stdlib.h>
#include <time.h>

int main() 
{
 srand(time(NULL));
 cout << "A number between 0 and 9.
> " << rand()%10;
 return 0;
}

Bwahahaha. You’ll get there.