[過去ログ]
C言語なら俺に聞け 152 (1002レス)
上
下
前
次
1-
新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
671
:
(ワッチョイ 4f25-WSqd)
2019/07/23(火)03:25
ID:/ZO3BTO70(1/7)
調
AA×
[240|
320
|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
671: (ワッチョイ 4f25-WSqd) [] 2019/07/23(火) 03:25:09 ID:/ZO3BTO70 gchar **command = (gchar *[]){"./Hello.exe","World",NULL}; を gcc6 で compile すると以下の2種類の warning が出ます。 warning: ISO c++11 does not allow conversion from string literal to 'gchar *' (aka 'char *') [-Wwritable-strings] warning: pointer is initialized by a temporary array, which will be destroyed at the end of the full-expression [-Waddress-of-array-temporary] どう書くのが正解なのでしょうか? 教えてください。最後の NULL がなければ、 gchar **command = (gchar **)((char [][20]){"./Hello.exe","World"}); で良いと思うのですが、最後の NULL も必要です。よろしくお願いします。 http://mevius.5ch.net/test/read.cgi/tech/1560763630/671
を で すると以下の2種類の が出ます どう書くのが正解なのでしょうか? 教えてください最後の がなければ で良いと思うのですが最後の も必要ですよろしくお願いします
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 331 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
ぬこの手
ぬこTOP
0.035s