[過去ログ]
Qiita 2 - キータぞ、来たぞ、キータだぞー (1002レス)
Qiita 2 - キータぞ、来たぞ、キータだぞー http://mevius.5ch.net/test/read.cgi/tech/1658762410/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
855: デフォルトの名無しさん [sage] 2023/04/04(火) 23:42:42.05 ID:erD0CuRV C言語みたいに文字列は配列が常識の人には凄さがわからないんだろうね。 配列だから文字を取得するのが出来るのは常識という発想は 古い発想でASCII文字列しか考慮してないんだろうけどw おじいちゃん、今はUTF-8で一文字のバイト数は可変の時代よ? C言語のやり方じゃ取得できないの http://mevius.5ch.net/test/read.cgi/tech/1658762410/855
858: デフォルトの名無しさん [] 2023/04/05(水) 02:14:36.32 ID:AynPvYbj >>855 おまえは↓見てスゴイスゴイ言ってれば良いよ。 #include <stdio.h> void print(const char** s) { while (*s) { printf("%s", *s); s++; } } int main(void) { const char* hello[] = {"こ", "ん", "に", "ち", "は", "世", "界", NULL}; puts(hello[3]); puts(hello[1]); puts(hello[0]); hello[0] = "H"; hello[1] = "e"; hello[2] = hello[3] = "l"; hello[4] = "o"; print(hello); } https://wandbox.org/permlink/OtKKJplub0RkTQGy http://mevius.5ch.net/test/read.cgi/tech/1658762410/858
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.033s