No older revisions available
No older revisions available
using namespace std;
int countz();
void main()
{
{
srand(time(0));
int x = rand()%3;
int y = rand()%3;
int a = 0 , b = 0;
int z = countz();
while(z)
{
x = x+a;
y = y+b;
panxy = 1;
z = countz();
}
for (int i = 0;i<3;i++)//출력부..
{
}
}int x = rand()%3;
int y = rand()%3;
int a = 0 , b = 0;
int z = countz();
while(z)
{
x = x+a;
y = y+b;
panxy = 1;
do
{
a = rand()%3 - 1;
b = rand()%3 - 1;
count++;{
a = rand()%3 - 1;
b = rand()%3 - 1;
if (a == 0 && b == 0)
}while(true);continue;
else if ((x+a >= 0 && x+a < 3) && (y+b >= 0 && y+b < 3))break;
z = countz();
}
for (int i = 0;i<3;i++)//출력부..
{
}