Re: [問題] 打星號畫圖

看板C_and_CPP作者 (乖乖)時間14年前 (2009/11/03 23:49), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/12 (看更多)
#include <iostream> #include <cstring> using namespace std; int main(){ string s("*"); for(int i=0;i<3;i++){ cout << s << endl; s.push_back('*'); } cin.get(); } 覺得還蠻陽春的寫法 如果不嫌棄就參考看看吧 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.249.60
文章代碼(AID): #1Ay54TAr (C_and_CPP)
討論串 (同標題文章)
文章代碼(AID): #1Ay54TAr (C_and_CPP)