Hey there,
Sorry it toke me so long to reply but i was caught into some exams. First of all i want to thank you all here for your help. Second, Hammer, thank you, that was the problem, a dot and a...
Type: Posts; User: pcwizzzz
Hey there,
Sorry it toke me so long to reply but i was caught into some exams. First of all i want to thank you all here for your help. Second, Hammer, thank you, that was the problem, a dot and a...
here is the code again:
float generare(void)
{
int r;
float U;
randomize();
r=random(100);
U=r/99;
return U;
So, randomize initialize the random generator. Then, r gets an integer number...
Thanks everybody,
I still see my version as being the easiest, i just haven't found yet the mistake. Probably isn't a big mistake, that's why i cant see it.
Oh, and thanks Code Jerk but it cant...
Hi everybody,
I have a problem with a fuction that should generate a random number between 0 and 1 but it only generates 0 everytime. i dont know what's wrong anymore, if someone could help me i...
Hi all, i need an information. I learnt C for a while and now i'm trying to study C#. I'm not too good on C but i can handle it. Where could i find some good tutorials about C#? Or some free online...
Ok. Now another problem linked to strings. I read a string into a array of char and want to count the letters. i put the !='\0' condition in a while statement but still, when i type space it stop...
Ok, so every function has to return something. right. now, it returns something by an argument that i define it. what for the return statement? I read some messages posted here about that but still...
I dont get this:
c=getchar(). where c is an integer type. so getchar takes the input from a file or keyboard and put it into a numerical variable. how that? what does this function return? the ascii...
Hi there. I'm a bit confussed. Theoretically i know what's the meaning of EOF but practically not really. So, have a text that i read with getchat and in an IF structure have the condition...