
Originally Posted by
Xav
Welcome to CodeCall! Which instrument(s) do you play?
Guitar and piano.

Originally Posted by
v0id
It would be a shame to avoid D just because you can't get the installation of certain libraries to work properly, and I think you feel the same. I think you should stick to D, as it is, like you say, the language which appeals to you the most.
Where exactly are you failing to install Tango, and have you tried seeking help in their forum, if they have one? It might not be you who just can't get it to work; it may have an error.
Yes, that's how I think too; it would be a shame. However, it's becoming more frustrating as another issue I have with D has sprung. These obstructions only get in the way. It's as if my mind starts to leak 'cause of it and makes me forget even simple things. I'm seriously starting to wonder what the hell's going on with all the stuff I've learned. As far as I'm concerned, it's correct so maybe it's the compiler...? If anyone's interested, here's some simple D code (though I will get help elsewhere, since this forum is not for D):
Code:
import std.c.stdio;
import std.random;
import std.stdio;
const DONE = 0;
int guess;
int randomgen;
char[] username;
char yesorno;
void guessing_game(){
do{
printf("\n\nGuess the number between 1 and 100: ");
scanf("%i", &guess);
if (guess > randomgen){
printf("Lower...");
}
if (guess < randomgen){
printf("Higher...");
}
} while (guess != randomgen)
printf("\n\nYou guessed the number!");
}
int main(){
randomgen = (rand() % 100) + 1;
printf("\n\nHello there. What is your name? ");
readln(username);
printf("\n\nAlright, %s, we are going to play a little guessing game.\n", &username);
printf("Proceed (Y/N)? ");
scanf(&yesorno);
if (yesorno == 'y'){
guessing_game();
}
else{
goto END;
}
END:
return DONE;
}
The output is most odd. It simple doesn't run as one would expect it to.
I've gotten a bit further installing Derelict. It seems I had to install YET another piece of software. Installing DAllegro (Allegro for D) proves to be somewhat easier. Nevertheless it is a nuisance which, together with other errors, slightly tempts to abandon D for C or Pascal.
Oh, and Jordan: the number 83 reminds me of a sad past memory. I use it as a username, but that's pretty much it. I don't wish to speak of it further. Regrettable, but it must be so.