VSでC言語かC#で小さい⭐︎をたくさん出力して大きな⭐︎をつくるコードかける人いたらお願いできないですか??難すぎます

1件の回答

回答を書く

1044428

2026-01-10 23:50

+ フォロー

こんな感じ?



#include \u0026lt;stdio.h\u0026gt;

#include \u0026lt;conio.h\u0026gt;

#include \u0026lt;math.h\u0026gt;



int main(void)

{

unsigned long int font[64][2] = {

{0x00000000, 0x03f80000},

{0x00000001, 0xffff8000},

{0x0070001f, 0xffffe000},

{0x007800ff, 0xfffff000},

{0x007c07ff, 0xfffff800},

{0x007fffff, 0xffcffc00},

{0x007fffff, 0xfe03fe00},

{0x007fffff, 0xf001ff00},

{0x007fffff, 0xc000ff80},

{0x007ffffe, 0x0000ff80},

{0x00fffff0, 0x0001ff80},

{0x00fffff0, 0x0007ffc0},

{0x01ffc3fc, 0x000fffc0},

{0x01ffe3fe, 0x0c1fffc0},

{0x03ffe3fe, 0x1e3fffc0},

{0x07ffc3fe, 0x7f7fffc0},

{0x0fffc3ff, 0xff807f80},

{0x0fff83ff, 0xff800000},

{0x0fff83ff, 0xff800000},

{0x0fff03ff, 0xff000000},

{0x0ffe03ff, 0xfc000000},

{0x07fc03ff, 0xc0000000},

{0x07f807fc, 0x00000000},

{0x03f007f8, 0x00000000},

{0x03e007f8, 0x3e000000},

{0x01c00ff8, 0xff800000},

{0x00001fff, 0xffc00000},

{0x00001fff, 0xffe00000},

{0x00001fff, 0xfff00000},

{0x00001fff, 0xfff80000},

{0x00000fff, 0x1ff80000},

{0x00000ff8, 0x1ff80780},

{0x000007e0, 0x1ff8ffe0},

{0x00000380, 0x3ffffff8},

{0x00000000, 0x3ffffffc},

{0x00000001, 0xfffffffe},

{0x0000003f, 0xffffffff},

{0x000003ff, 0xffffffff},

{0x00003fff, 0xfffffffe},

{0x0001ffff, 0xfffffffc},

{0x000fffff, 0xfff000f8},

{0x0fffffff, 0xfff00000},

{0x1fffffff, 0xfff00000},

{0x3ffffff8, 0xfff00000},

{0x3fffffc0, 0xfff00000},

{0x7fffff00, 0xfff00000},

{0xfffffc01, 0xffe00000},

{0xfffff001, 0xffe00000},

{0x7fffc001, 0xffe00000},

{0x1fff8003, 0xffe00000},

{0x01ffe003, 0xffe00000},

{0x0003fc07, 0xffe00000},

{0x0000ff07, 0xffe00000},

{0x00007fef, 0xffc00000},

{0x00003fff, 0xffc00000},

{0x00001fff, 0xffc00000},

{0x00000fff, 0xffc00000},

{0x000007ff, 0xffc00000},

{0x000001ff, 0xff800000},

{0x000000ff, 0xff800000},

{0x0000007f, 0xff000000},

{0x0000003f, 0xfc000000},

{0x0000000f, 0xf8000000},

{0x00000003, 0xc0000000}

};

int x, y, x2i, y2i;

int font1;

double deg, rad, s, c, x1, y1, x2, y2;

printf(\u0026quot;\\x1B[?2J\u0026quot;);

printf(\u0026quot;\\x1B[?25l\u0026quot;);

for (deg = 0; deg \u0026lt;= 1800; deg++) {

rad = deg / 180.0 * 3.14159265;

s = sin(rad);

c = cos(rad);

printf(\u0026quot;\\x1B[1;1H\u0026quot;);

for (y = 0; y \u0026lt; 24; y++) {

for (x = 0; x \u0026lt; 48; x++) {

x1 = (x - 23.5) / 23.5;

y1 = (y - 11.5) / 11.5;

x2 = x1 * c + y1 * s;

y2 = y1 * c - x1 * s;

x2i = (int)(x2 * 32 + 32);

y2i = (int)(y2 * 32 + 32);

if (x2i \u0026gt;= 0 \u0026amp;\u0026amp; x2i \u0026lt; 64 \u0026amp;\u0026amp; y2i \u0026gt;= 0 \u0026amp;\u0026amp; y2i \u0026lt; 64)

font1 = font[y2i][x2i / 32] \u0026gt;\u0026gt; (31 - (x2i % 32));

else

font1 = 0;

if ((font1 \u0026amp; 1) == 1)

printf(\u0026quot;*\u0026quot;);

else

printf(\u0026quot; \u0026quot;);

}

printf(\u0026quot;\
\u0026quot;);

}

}

return 0;

}

うったえる有益だ(0シェアするブックマークする

関連質問

Copyright © 2026 AQ188.com All Rights Reserved.

博識 著作権所有