Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 6 years ago

利用C++讀取txt並實現換行與空格!

假設有段文章:

Taiwanese people believe that ghosts leave the underworld for one month every year. To ensure that these ghosts are happy and do not bother them, Taiwanese people observe certain traditions during “Ghost Month.” This festival takes place in July on the lunar calendar. Ghost Month is a time when families pray for the ghosts of their ancestors. They will also leave food out to feed any “hungry ghosts” that might wander by.

在c++中先要求你輸入幾個字要換行,輸入完後會自己換行跟補空格:

(知識好像會自己把空格消除= =所以我貼網址

http://www03.eyny.com/forum.php?mod=viewthread&tid...

從右邊開始補空格直到可以對齊,如果每個字之間補一個空格還是沒辦法對齊再從右邊的字補一個空格直到可以對齊,

想問c++有辦法實現這個問題嗎?求解感恩><

5 Answers

Rating
  • Anonymous
    6 years ago
    Best Answer

    發問者你好:

    幫你整理好了,詳細資料在這邊

    http://*****/MmZRO

    希望其他回答者也認同我意見^^

  • Anonymous
    6 years ago

    下面的網址應該對你有幫助

    http://phi008780424.pixnet.net/blog

  • Anonymous
    6 years ago

    下面的網址應該對你有幫助

    http://phi008780424.pixnet.net/blog

  • 6 years ago

    >這家不錯*****買幾次啦真的一樣

    亿伂叾凜侻

  • How do you think about the answers? You can sign in to vote the answer.
  • Anonymous
    6 years ago

    參考下面的網址看看

    ▶▶http://*****

Still have questions? Get your answers by asking now.