音が流れない場合、再生を一時停止してもう一度再生してみて下さい。
ツール 
画像
pass_by_reference
919回再生
The ONE time AI is useful for coding.

Okay I caved and I start using AI. Here is one instance where it was actually useful.

Prompt:

Given this cpp code snippet that constructs a shape of a alphabet from a 5 by 5 array, create the next pattern for all letters of the alphabet.

const Array2D A_mapping = {
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 0, 0, 0, 1
};

const Array2D B_mapping = {
1, 1, 1, 1, 0,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1
};

const Array2D C_mapping = {
1, 1, 1, 1, 1,
1, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 1, 1, 1, 1
};

const Array2D D_mapping = {
1, 1, 1, 0, 0,
1, 0, 0, 1, 0,
1, 0, 0, 0, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 0
};

#programming #coding #cpp #generativeai

コメント