デジタルちんぶろぐ

デジタルな話題

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  268  : 記事  0  : コメント  4419  : トラックバック  79

ニュース


技術以外は
ちんぶろぐ

記事カテゴリ

書庫

日記カテゴリ

twitterで見かけた発言から自分で適当に仕様を決めて

  1. 任意の範囲で反復してカウントする値。例えば1~5なら1,2,3,4,5,4,3,2,1みたいに。
  2. テンプレートパラメータの2つは開始と終了値。2, -3なら最初の移動方向は2,1,0,-1,-2,-3。
  3. それで開始値も設定できる。範囲を1,5で設定して初期値を3にすると3,4,5,4,…となる。

作ってみた。

こちら

どうもすっきりしない。イテレータにするとより良いんだけどとりあえずここまで。

投稿日時 : 2009年10月22日 1:43

コメント

# 名前で悩んでいるんです 2009/10/24 15:27 デジタルちんぶろぐ
名前で悩んでいるんです

# そういえばピンポン出来てたのを忘れてた 2009/12/08 0:14 デジタルちんぶろぐ
そういえばピンポン出来てたのを忘れてた

# JOneyJARUoVcCHADW 2011/12/13 20:40 http://www.drinkershealth.net/antabuse-disulfiram/
Received the letter. I agree to exchange the articles.

# kwbCVrZPXZghwS 2011/12/27 20:01 http://www.instawares.com/
I decided to help and sent a post to the social bookmarks. I hope to raise it in popularity!!...

# YyXEUxUhjyoMzSDAdWg 2012/01/07 3:26 http://www.luckyvitamin.com/c-129-weight-loss-form
I`m so grateful that you enlightened me and the most important thing that it happened in time. Just think, I have been using the internet for six years already but it`s the first time I`ve ever heard about it!...

Post Feedback

タイトル
名前
Url:
コメント: