LoginSignup
3
2

More than 5 years have passed since last update.

マップのインクリメント

Last updated at Posted at 2013-01-11

そうそうperlは上だったよw
http://ja.softuses.com/13892

$map{$word}++;
int count = map.containsKey(word) ? map.get(word) : 0;//真なら左、偽なら右0
map.put(word, count + 1);
3
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2