五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

2022日歷代碼

2022-03-02 18:22 作者:大威的水杯  | 我要投稿

這個(gè)代碼在周末時(shí)會(huì)變成紅字,平常使用白字;

由于制作法定節(jié)假日和調(diào)休比較困難(其實(shí)就是up主懶),所以沒有這個(gè)功能。

直接上代碼:

#include <iostream>

#include <windows.h>


using namespace std;

void SetColorAndBackground(int ForgC, int BackC)?

{

WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), wColor);

}

int nextline(int i)

{

if (i == 1)

{

cout << endl;

cout << " ";

}

return 0;

}

int color(int x)

{

if (x == 6 || x == 7)

{

SetColorAndBackground(4, 0);

}

else

{

SetColorAndBackground(7, 0);

}

return 0;

}

int main(void)

{

int a, b, c, d;

cout << "2022年日歷"<<endl;

d = 5;

for (a = 1; a <= 12; a++)

{

/*if (a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 || a == 12)

{

c = 31;

}

else if (a == 4 || a == 6 || a == 9 || a == 11)

{

c = 30;

}

else

{

c = 28;

}

*/

cout << "|mon|tus|wen|thr|fri|sat|sun"<< endl ;

cout << "? ? ? ? ? ? ? ? ";

for (a = 1; a <= 12; a++)

{

cout << endl;

cout << a << "月日歷";

cout << endl;

if (d == 1)

{

cout << "? ? ";

}

else if (d == 2)

{

cout << "? ? ? ?";

}

else if (d == 3)

{

cout << "? ? ? ? ? ";

}

else if (d == 4)

{

cout << "? ? ? ? ? ? ?";

}

else if (d == 5)

{

cout << "? ? ? ? ? ? ? ? ";

}

else if (d == 6)

{

cout << "? ? ? ? ? ? ? ? ? ?";

}

else

{

cout << "? ? ? ? ? ? ? ? ? ? ? ";

}

if (a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 || a == 12)

{

c = 31;

}

else if (a == 4 || a == 6 || a == 9 || a == 11)

{

c = 30;

}

else

{

c = 28;

}

for (b = 1; b <= c; b++)

{

if (d == 7)

{

d = 1;

}

else

{

d++;

}

nextline(d);

color(d);

cout << b << " ";

if (b < 10)

{

cout << " ";

}

}

}

}

}


2022日歷代碼的評論 (共 條)

分享到微博請遵守國家法律
仁寿县| 崇明县| 新田县| 徐汇区| 海南省| 勐海县| 施甸县| 沐川县| 清远市| 登封市| 郯城县| 蛟河市| 上杭县| 怀远县| 格尔木市| 姚安县| 绵阳市| 博罗县| 宜都市| 东阳市| 红桥区| 桐柏县| 牟定县| 乌拉特前旗| 岳普湖县| 普定县| 政和县| 河北区| 武平县| 云浮市| 绥棱县| 班戈县| 仙桃市| 包头市| 永州市| 边坝县| 天台县| 凤庆县| 扎赉特旗| 宁陵县| 习水县|