comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

ファイルの内容をコマンドラインから表示する方法

コマンドライン(ターミナル)からファイル内容を確認するためのコマンドは cat, less, (more), vi などがある。 cat :ターミナル上にファイル内容を表示したい場合。 less:エデ …

no image

gnuplot で、グラフの形を正方形にする方法

set size square または、その省略形で set size sq というコマンドを使えば正方形の中にグラフを描くことができる。 例 set size square plot cos(x) …

no image

std::map の内容が空かどうか判定する方法

map の中身が空であるかどうかには、empty() を使う。 map の要素を消去するには、erase を使う。 例 #include <iostream> #include <map> …

no image

python3 でリストの要素を None に変更する方法

要素を None に変更すればよい。 例 arr = [1,2,3,4,5] print(str(arr)) for i in range(len(arr)): arr[i] = No …

no image

c++ で文字列を「区切り文字」を使って分ける方法

string の find を使って、区切り文字の場所を取得し、その位置で区切る。 例 #include <iostream> #include <string> using namesp …