Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
關於運算如何做到多次計算
Nov 16th 2014, 08:05

不知標題這樣寫對不對

假設 當用於1+2 ok
1+5 如何做到 1+2+3+4+5

舉個例
NumericUpDown1 目前等級
NumericUpDown2 目標等級
Label1 算出運算結果

基本運算公式
((當前LV+1)^3.3 + (當前LV+1-150)^4.9)

假設
162升163需 20249983 EXP
163升164需 20782777 EXP
164升165需 21361688 EXP
165升166需 21995689 EXP

如何做到當
NumericUpDown1 = 162
NumericUpDown2 = 163
結果是 20249983

而當
NumericUpDown1 = 162
NumericUpDown2 = 166
結果是 162到166所需經驗
162+163+164+165+166 運算結果 84390137

而當
NumericUpDown1 = 162
NumericUpDown2 = 162
結果是 0

而當
NumericUpDown1 = 165
NumericUpDown2 = 162
結果是 負的

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    kkoki0httzobg 發表在 痞客邦 留言(0) 人氣()