Yes, i know how to use loops :).
i'll try what you suggested, this is greatly appreciated
Type: Posts; User: jemer
Yes, i know how to use loops :).
i'll try what you suggested, this is greatly appreciated
I'll go more in-depth into the specifics of what my program is meant to do.
-There are two players, and there are two dice.
-player one, the user, rolls die 1. he them guesses if die 2 will get...
being the c++ newbie that I am, i don't understand how to use that. Also, the function is being called at dirrent times during the program, if that is of any relevance.
-->edit: what i am going to...
I'm creating a program that has a function that rolls a die to create a random number between 1-6. I have that figured out and running. The problem is that I need to call the function several times...
aha, i got it, its "precision" w/o the "set". thanks.
i get the following error:
i've inly included the following:
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
How do i get a number to display only two decimal points? I'm using a float variable, and i know that it's default is 6 decimal spots. Is there a way to change this? or a new variable type?