Programming Questions

(CubeFan973) #1

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?

(acasto) #2

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

(CubeFan973) #3

I’ll get to randomness later.

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

(acasto) #4

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.

(valarking) #5
  1. C++

  2. Looky:

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

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

Bwahahaha. You’ll get there.