Half Life singleplayer was only OK, same with Halo.
I had fun beating them once but there's no replay value at all. With the multiplayer of those games, though (well the CS mods to HL), I could...
Type: Posts; User: JDrake
Half Life singleplayer was only OK, same with Halo.
I had fun beating them once but there's no replay value at all. With the multiplayer of those games, though (well the CS mods to HL), I could...
He put it like this:
<CODE><COLOR="Lime">code here</COLOR></CODE>
RedOrangeYellowGreenBlueIndigoViolet
Hahaha
It's at 3billion and I'm losing hope (going at about 10,000 tries a second) :/
My math was also wrong because with 16! you cannot have the same 4x4 square twice, but you can in my program......
I think there are 7040 different possibilities (880 unique?) so it should take, what, 3billion tries?
Ditto.
Well, the counter says that it has done the operations 163million times so far...
First, include the header files you will need to do what you want. This will probably only be iostream.
Then, declare the variables you will need in the program. You will probably need a...
#include<iostream.h>
#include<stdlib.h>
#include<time.h>
void random1();
int norepeat[17]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int row1[4];
int row2[4];
int row3[4];
int row4[4];
That's what I'm not sure about. Do you know anywhere I can look at an example of passing true/false between multiple functions; or what I should search for?
Robatino, I was told it'd be easier to...
Who the heck plays a game for the story? Multiplayer is all that matters.
<- Halo/CS fan
I thought what checkall() was doing was "us[ing] a loop to call random1 over and over again", but you don't want me to do that? Where should I be calling random1() if the checkall() is false?...
Here's what I have
#include<iostream.h>
#include<stdlib.h>
#include<time.h>
void random1();
void checkall();
int norepeat[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
So what would be the more efficient way of checking a row/column??
I was just AFK and now I get back and still have no idea what to do...
...
Daved, I'm redoing the code with a 6x6 array:
#include<iostream.h>
#include<stdlib.h>
#include<time.h>
int grid[6][6];
void randnums();
Ok, thanks... dunno but it was giving me problems earlier so I just did
variable1=grid[1];
variable2=grid[2];
and then
if(variable1+variable2==4)
The 2nd worked but when I added grid[1] and...
So wait... can you or can you not do something like this:
if(grid[3][1]+grid[3][2]==4)
?
Thanks guys. Your suggestions should keep me busy for a while, so I'll get back to you later :)
Do you know why there was no problem with the 3x3 even with the little problem(s) you showed me?
If you were wondering, here is the code for the 3x3 "Magic Square" and it works perfectly I think:
#include<iostream>
#include<time.h>
#include<stdlib.h>
void assignrow1();
void...
Thanks, Daved.
I changed all of the loops to
for (int x=0;x<6;x=x++)
And I changed the
row1num1=row1[1];
to
row1num1=row1[0];
This is my 2nd post (different problem this time) and with the last question I made, you guys answered me very well, so here I am again.
This time, I have to make a 6x6 "Magic Square"using arrays. ...
isn't this a lot easier
#include<iostream.h>
int main()
{
int temp1;
double temp2, temp3;
char temp4;
cout<<"(1)Fahrenheit or (2)Celcius?"<<endl;
How do you have it so that
if(money<0)
END PROGRAM?
(simple way?)
Hmmm very good point, didnt think of that, can you show me basically how itd be set up. I get what you're saying but how would you make it stop checking once the IF is completed?
(PS: don't worry...
In the variables ac3, bc3, cc3, dc3, ec3, and fc3, I have stored the number of moves it took for something to happen. Now, I need to get the lowest, 2nd lowest and third lowest from that group.
...