2019.7.10,收获

公元二O一九年七月十日星期三,今日收获如下
数学掌握看2,3,4,5,7,8,9,11,13,25,125能不能被a整除。2,5看个位(为2,4,6,8,0的是二的倍数,5,0是五的倍数),4,25看个’十位(如264,64%4=0,64%25 =14,264为4而不是25的倍数),8,125看个 十 百位(5264%8=0(264%8=0),5264%125=14(264%14=14)),7,11,13看末尾三位与前三位的差是否能整除(3251被不被7整除,251-003=248,248%7=3,3251%7=3)3,9看各位,(2+1=3,21%3=0,3+6=9,36%9=0).

语文看了悬疑的运用,英语做了阅读,还背了如下单词:
secondary school cereal textook credit card composition receipt
trainer interpreter communication route
接着发2048

#clude
#include<windows.h>
#include
using namespace std;
int const ROW = 4;
int const COL = 4;
int game[ROW][COL]={0};
int const UP=1
int const DOWN=2
int const LEFT=3
int const RIGHT=4
int const GAME_OVER = 1;
int const GAME_WIN = 2;
int const GAME_CONTINUE = 3;
enum GameNum
{
Game_2 = 2,
Game_4 = 4,
Game_8 = 8,
Game_16 = 16,
Game_32 = 32,
Game_64 = 64,
Game_128 = 128,
Game_256 = 256,
Game_512 = 512,
Game_1024 = 1024,
Game_2 = 2,
};
void Print()
{
system(“cls”);
cout<<"**************** 2048 *"<<endl
cout<<"
ByTanzf(Intern)"<<endl<<endl
for (int i = 0;i < ROW; ++i)
{
cout <<"---------------------------------"<<endl;
for (int j = 0;j < COL; ++j)
{
if (game[i][j]0)
{
cout<<"| \t";
}
else
{
cout <<"| “<< game[i][j]<<”\t";
}
}
bool CreateNumber()
{
int x = -1
int y = -1
int time = 0;
int maxTime = ROW * COL;
int whitch = rand() % 3
do
{
x = rand() % ROW;
y = rand() % COL;
++times;
}while (game[x][y] != 0 && time <= maxTimes);
if(time >= maxTimes)
{
return false;
}
else
{
GameNum num;
if(whitch
0)
{
num = Game_4;
}
else if(whitch)
{
num = Game_2;
}
game[x][y] = num;
}
return true;
}
void Process(int direction)
{
switch(direction)
{
case UP:
for(int row = 1;row < ROW;++row)
{
for(int crow = row;crow >= 1;–crow)
{
if(game[crow-1][col] == 0)
{
game[crow-1][col] = game[crow][col];
game[crow][col] = 0;
}
else
{
if(game[crow-1][col] = game[crow][col])
{
game[crow - 1][col] *= 2;
game[crow][col] = 0;
}
}
}
}
}
break;
#include

int main() {
return 0;
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值