I believe I have tried to use different ways to clear the screen, but almost everyone of them takes a lot of time and (I think) memory.
I think I tried adding a lot of spaces using "for"
...
Type: Posts; User: Alastor
I believe I have tried to use different ways to clear the screen, but almost everyone of them takes a lot of time and (I think) memory.
I think I tried adding a lot of spaces using "for"
...
c=4*cinco;
t=2*tres;
Ok, I fixed the warning thing, but the program is still not getting the right amount of petals...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int newgame(void);
I only got one warning, the warning you mentioned
Yeah, I have some stuff that shouldn't be there yet, but I thought that wouldn't affect the program.
Thanks for your help
Alastor
edit: i==5 checks if the first random number is 5 (I hope I got...
to check for every random number to see if they are a 3 or a 5?
Thanks! New problem though, the function 'newgame' doesn't run.... (Even without the troubling clear screen method)
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int...
Right on the money, thanks a lot!
edit: The only problem is that if you choose to play a second time, you get a sixth number , "2009463936"
Thanks.
This
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define MAX 6
int main(srand)
{
I thought that was what he meant by "somewhere else in the code"
Thanks for the help, but it didn't work, I get a bunch of errors. I'm about to post my program, please try not to correct useless stuff in it unless it affects the running of the program (I...
Thanks, but it would also be good if the program could generate random numbers every time (I tried srand already...).
Thanks
I know there are a lot of links and tutorials on this topic, but I can't seem to write working code to produce a random number from 1-6 (For a Petals Around the Rose thing)
Thanks...
A neat, easy and improved rand function
I think I get it now, thanks
mmm... I still don't understand how cont[i] gets its value according to the user's input
What I think I understand now is that cont can be used for cont[i] while i is an integer from 0-100, is...
isn't it easier to use 'for'?
Thanks, but I still don't know how cont[i] gets information, it's value is defined as 0 and I don't see it come up again in the program...
Another question on (edit)arrays....
The tutorial I'm reading shows me a program that outputs how many times a number from 0 to 99 was typed. What I don't understand is how that is stored in cont[i]...
Hi, I'm trying to make a program that prints the first 100 numbers of cont, using the recursive function listed below. Unfortunately, what I wrote doesn't work, so I was wondering, if it was even...
thanks a bunch
I'm (still!) learning to program in C, and I encountered "vectors". Since English is not my first language, I wasn't sure if in programming it was the same type of vector (Since there are a few...
"One boy jumped on some girl" :p
You probably get an error because you have an 'artical' in there :p
Impressive, very simple, easy to read