close
Blogtrottr
批踢踢實業坊 ask 板
 
[請問] word有類似程式可以定義「變數」的功能嗎
Jun 25th 2014, 11:59, by dudeboy

作者dudeboy (泄師傅)

看板ask

標題[請問] word有類似程式可以定義「變數」的功能嗎

時間Wed Jun 25 11:59:37 2014

是這樣的,我在寫一份文件,涉及一份統計表,大概像這樣: 訂便當9人,吃豬肉5人,吃牛肉4人 所以如有人要加訂一個素便當,訂便當總數也要改動。 這只是一個簡化的舉例,我的文件有許多這樣牽一髮動全身的修修改改處。 現在都是用CTRL+F去搜尋與修改,但難免有疏漏。 所以我就想,有沒有像寫程式(PHP為例)的變數一樣 ------------------------------------------------ $total=$beef+pork; $pork=5; $beef=4; echo "訂便當的人數有".$total."人,其中吃牛肉的有".$beef."人"; -------------------------------------------------- 這樣就比較不會有漏改的地方.... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.232.152.47 ※ 文章網址: http://www.ptt.cc/bbs/ask/M.1403668780.A.D32.html

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
    全站熱搜
    創作者介紹
    創作者 kahntoue 的頭像
    kahntoue

    farm heroes saga手機版, farm heroes saga外掛無限道具, farm heroes saga 99攻略, farm heroes saga 157攻略, farm heroes saga 33, farm heroes saga 手機, farm heroes saga下載

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