nice game =)
Type: Posts; User: Dummies102
nice game =)
Hi everyone, is there anyone out there who would like to write a checkers or tic tac toe game, or maybe both? I'm looking for someone on the upper side of begginer who would like to write these games...
ya, incase you couldn't read between the lines, I was telling you,
"read the damned tutorial and see how much you actually have to learn before you have little robots running around checking your...
well... here's the function:
int PythSimp(int i, int one, int two, int a)
{
one = one * one;
two = two * two;
one = one + two;
for (i=1;one % i !=0;i++)
{
two=one/i;
thanks all
read the tutorial
can I have an inted function return two values? thanks
well, depends what you want the program to do, the first one is:
j=30, take away 1 from j as long as j is greater than 0.
the second one would be:
j=30, take away 1 from j as long as j is j.
definatly learn cpp thouroughly before you attempt to to learn AI, you'll find yourself very lost most of the time if you don't know the language. You have to start small, then maybe once you know...
is there a way to check to see if a number is whole?
oh, heh, ya, sorry, not 100% sure on what they were called, ya, the operators were what I was looking for, thanks.
that unreged persons idea about a program that generates random mazes and then solves them is a great idea, it would be fun with the AI you'd have to make.
#include <iostream.h>
#include <math.h>
int main()
{
double x, y;
cout <<"This program will find x^y. please enter x(number) and then y(power)";
x = pow(x, y);//this is the pow function, it...
would it be easyer to just have:
double a, b, c;
for(;;)//just add this if you want this to loop forever, I know unorthodox, but works.
{
cout <<"please enter your grades";
cin>>a>>b>>c;
a =...
does anyone have a list of boolean functions, or a link to one?
just simple stuff like a > 1, and < 2. and being the function I need to know, etc. thanks
33's not a perfect square, so the program would say something like, "that's not a perfect square". and thanks for the code, it'll give me some great ideas.
here's some of the code I have now, but...
I'm trying to make a program that will try to find two perfect square numbers(4, 9, 16, etc)(x, and y) that go into another number(z) with no remainder, then try to square root x and y as far as they...
I have a main program with a switch statement, and each case pulls up a function which is a program, how, once the function is run, go back to the main program? So like if the program asks me what I...
just put the whole function of a card game in a file like poker.h and call it in your main program, and when you need poker, just call it like you normally would. When chop up your program and put it...
just make a file and save as blackjack.h or poker.h from your compiler. then on your main file, under all of your #include s, do:
#include "c:/directory where header files are/poker.h"
and so...
ohh... well now I feel stupid, i tryed this and it gave me an error the first time, now it works.... thanks
well, here's my program:
#include <iostream.h>
#include <math.h>
int pyth(double one, double two);
int main()
{
cool game, need to run it from comand prompt tho
is there a way to make return count as a double instead of an int? thanks