<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3105979800746457543</id><updated>2024-10-24T09:04:32.192-07:00</updated><category term="C++"/><category term="C"/><category term="函式"/><category term="array"/><category term="程式碼"/><category term="Database"/><category term="Delete"/><category term="Image"/><category term="Microsoft Visual Studio 2008"/><category term="OpenCV 2.1"/><category term="SIFT"/><category term="_mkdir()"/><category term="_rmdir()"/><category term="fopen"/><category term="function"/><category term="html"/><category term="mode"/><category term="new"/><category term="好用網站"/><category term="批次"/><category term="指定路徑"/><category term="新增"/><category term="檔名"/><category term="讀檔"/><category term="資料夾"/><title type='text'>C/C++程式筆記</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-4441006717444617553</id><published>2013-11-06T07:14:00.000-08:00</published><updated>2013-11-18T20:16:23.310-08:00</updated><title type='text'>[面試經驗]訊達電腦</title><content type='html'>&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fcandcpluspluswriter.blogspot.tw%2F2013%2F11%2Fx_6.html&amp;amp;width=450&amp;amp;height=35&amp;amp;colorscheme=light&amp;amp;layout=standard&amp;amp;action=like&amp;amp;show_faces=false&amp;amp;appId=117722928330811&quot; style=&quot;border: none; height: 35px; overflow: hidden; width: 450px;&quot;&gt;&lt;/iframe&gt;&amp;nbsp;
&lt;br /&gt;
在退伍前的一個月，我開啟了104的履歷；隔不到一天我就收到了面試邀約的信件。對於即將成為新鮮人的我，當然很開心的跟公司安排面試。但因為我是在外島當兵，所以得要一個月後回台灣才能面試。所以這家公司是我的第一次面試。&lt;br /&gt;
&lt;br /&gt;
在收到這家公司的面試邀請時，依照資深鄉民的本能，想當然耳是先Google這家公司的評價、工作內容及薪資水準囉！恩...不太妙...&quot;掌聲響起&quot;的系列文章映入眼簾，但都是好幾年前的文章，而且大部分文章的連結都失效了；所以當時就沒多想，認為這應該都是舊資料了，應該沒那麼有參考價值。&lt;br /&gt;
&lt;br /&gt;
到了面試那天，準時抵達，人資小姐拿了一份考題給我寫。考題內容有程式、資料庫及管理相關的名詞解釋。我幾乎都不會，因為剛退伍，大家都知道，腦袋會非常的不靈光...所以我幾乎不會寫...&lt;br /&gt;
&lt;br /&gt;
寫完之後就跟主管面談，面談的過程滿輕鬆的，感覺主管人也不錯。後來談到工作時數，主管說會比較長，大概到晚上七點半(上班時間是早上九點半)。我覺得這工作時數算是我理想中的時數。再來就談到我希望的待遇，我是開43K，差不多就是碩士剛畢業在台北的行情(約42K~45K)，主管就說你剛退伍，沒有經驗，這樣的價碼好像有點高。我微微地笑了一下，沒跟他多說甚麼，他就接著說：&quot;要拿這麼高的薪水，當然就是要跟別人不一樣，要能夠為公司創造同等的價值，這樣才不會對不起付給你薪水的人！&quot;我覺得他說的沒錯，所以就順著她的話說我也這麼認為。主管繼續說：&quot;這樣好了，我們公司有一份內部訓練教材，其中一個章節你回去讀，下一次面試，也就是一個禮拜後，麻煩你做個簡報，讓我們知道你再學習新東西的速度及能力是到甚麼樣的程度。因為你是資工背景，又讀到碩士，我想這對你來說應該不會太難(這章節是講Disk array，RAID的相關介紹)。當然，如果你的價值有到43或45，公司不會虧待你的。&quot;我那時事實上有點開心，因為我的程式能力不強，報告對我來說相對地容易，因此欣然地接受了這一份任務，所以一個禮拜後的晚上七點就到公司進行簡報。&lt;br /&gt;
&lt;br /&gt;
我簡報完之後，主管感覺還算滿意，在聽的過程中頻頻點頭。大概討論了一下我簡報的內容，就說：&quot;不錯！你有43K的能力，但要到45K還需要再努力。&quot;當時我只心想，這是我第一個拿到的Offer，蠻開心的！接著他就說如果有確定要來的話，工作內容就包括要讀這份教材的全部，然後考試要達到70%。之後可以當公司內部的講師及Presale。他也特別說到考試是否通過跟&quot;績效&quot;有關。我當時不以為意，想說沒考過是扣季&quot;獎金&quot;之類的。&lt;span style=&quot;color: red;&quot;&gt;(進公司一個月後沒考過，主管竟然是要降我的底薪！)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
當下主管就問我甚麼時候能夠去上班，我就跟他說要考慮一下。他就滿臉疑惑地說：&quot;有達到你期望的薪資怎麼還要考慮呢？&quot;我就只好跟他說些要先找房子、跟家人討論之類的奇怪理由。接著他就問我：&quot;知道我們的工時吧！？&quot;我就回答說：&quot;上次有說到阿~大概到晚上七點半左右~對吧？&quot;主管只笑笑地回了我&quot;差不多，差不多&quot;。&lt;span style=&quot;color: red;&quot;&gt;(之後去上班才知道，星期一到四的晚上八點到十點都要開會或上課...主管大概認為這不算加班...) (在我進公司之後，我親耳聽到資深同事跟面試者說上班時間是到七點左右，沒事就可以走了。完全省略每天要上課開會的事實，真的是...)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
面試完的兩個禮拜後，其他面試的公司都沒有下文，基於家人的壓力，我就答應了這家公司的Offer了，在我一答應這家公司的Offer之後，當天有三家找我第二次面試...人生啊...當時只想著做人要守信用，就推掉其他公司的二次面試了。&lt;br /&gt;
&lt;br /&gt;
上班之後就是過著幾乎每天都十點才從公司離開的悲慘日子...請參考：&lt;a href=&quot;http://candcpluspluswriter.blogspot.tw/2013/11/x.html&quot;&gt;[工作經驗]訊X電腦&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/4441006717444617553/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2013/11/x_6.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4441006717444617553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4441006717444617553'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2013/11/x_6.html' title='[面試經驗]訊達電腦'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-7949770412237204722</id><published>2013-11-05T06:33:00.000-08:00</published><updated>2014-08-23T01:07:58.861-07:00</updated><title type='text'>[工作經驗]訊達電腦</title><content type='html'>&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fcandcpluspluswriter.blogspot.tw%2F2013%2F11%2Fx.html&amp;amp;width=450&amp;amp;height=35&amp;amp;colorscheme=light&amp;amp;layout=standard&amp;amp;action=like&amp;amp;show_faces=false&amp;amp;appId=117722928330811&quot; style=&quot;border: none; height: 35px; overflow: hidden; width: 450px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
(11/06補充：扣薪水的部分主管後來說再給我一個月的時間，又考不過的話再扣。所以我在被扣薪水之前就趕快閃人了...)&lt;br /&gt;
&lt;br /&gt;
到訊X工作剛滿兩個月，前幾天毅然決然的辭職，因為工作習慣及理念跟主管實在是相差太多...&lt;br /&gt;
&lt;br /&gt;
我是在軟體研發部門，擔任研發工程師的職位，工作內容正常來講是寫公司內部系統的程式。但因為主管說我是碩士學歷，學校又不錯，因此希望除了寫程式之外，能夠培訓我在公司擔任講師及Presale。而這兩樣任務需要考試，考的內容是某大廠的教材，講的大概是server或PC的組成架構，包含了Memory、CPU、Bus、Disk、Networking、Backup、Chipset等等總共16章的內容(全英文，約300多頁)；對於這樣的安排，我當時只覺得這應該很正常；而且指派這麼多的任務給我，應該表示對我有所期待，我應該更努力達到才行。&lt;br /&gt;
&lt;br /&gt;
進去的第一個禮拜，除了禮拜五是晚上七點左右(正常上下班時間是早上九點半到晚上六點半)離開公司，其他四天都是晚上十點過後才離開公司。禮拜一跟四是因為部門內部要上課(晚上七點半到九點半)，禮拜二是要去聽公司各主管開會(晚上八點到十點)，禮拜三則是有與管理相關的課程(晚上八點到十點)。可能會有人認為這樣可以學到很多東西或者是這樣很充實，不過對我來說實在是太多天了...&lt;br /&gt;
&lt;br /&gt;
第二個禮拜主管就跟我說因為要讓我準備Presale及講師的考試(公司內部的考試)，所以我可以不用參與禮拜一、二、三個課程或會議，要我自己在辦公室裡面看書。因此每天晚上，除了禮拜五，我就一個人留在辦公室裡面看書。有次上班時間，因為要讀的考試內容的進度有點落後，而且這也是工作內容需要，就想說先看一點考試的內容。後來被主管看到我在念考試的東西，就跟我說：&quot;上班時間還是以寫程式為主喔，考試的部分應該是要利用你下班的時間看喔！&quot; 我當時有點傻住...到底考試應該算工作內容還是我自身的事情？後來也只好認了，之後就上班時間寫程式，下班時間才看書。&lt;br /&gt;
&lt;br /&gt;
過沒多久有一個專案，是要去客戶那邊做簡報，demo我們的產品，因此要簡報的前一天，每位較資深的同仁都忙到十一、十二點多；我大約在八點多時問其他同仁是否有需要幫忙的，但因為我進去沒多久，而此專案也進行有段時間了，他們就跟我說沒辦法幫上忙。因此我就先回家看書休息了。隔天主管問我說：&quot;為什麼昨天那麼早離開呢？大家都在忙，你應該要留下來幫忙啊！&quot; 我回答：&quot;我有先問其他人是否需要幫忙，但他們都說我沒辦法幫上忙。&quot; 接著主管就說：&quot;就算沒辦法幫忙，我們是一個team，也應該要留下來精神支持一下啊～！你也可以在這邊看書阿！下次要記得喔～&quot;&lt;br /&gt;
&lt;br /&gt;
進公司一個月左右，就是要考試的時候了。雖然考了兩次的模擬考(每次50題，半小時)，但370多題的題目要在三小時左右寫完(單選題、選擇題、是非題)。而對於我來說，要背大量的東西實在是我的弱點。想當然爾，兩次模擬考都對不到一半，正式考試只對了差不多三分之一(通過是要答對70%)。&lt;br /&gt;
&lt;br /&gt;
隔天主管就找我談話，說要降我的月薪。而且降5000！我聽到時差點傻掉...因為主管在我進來時，每個禮拜大概都會提醒我兩次說：&quot;這考試跟你的［績效］有關喔！&quot;。當時我以為是獎金之類的，結果竟然是月薪...我只好回說，這樣我在台北生活不下去，只能辭職了。主管就說：&quot;那你覺得扣多少可以接受？總不可能都不扣吧？這樣對其他同事都不公平，因為你的薪水比他們高，但額外的任務沒有完成，如果不降的話對他們都不公平。&quot;因為這太突然了，我只好隨便跟他喊個3000&lt;br /&gt;
...然後他就開始說他以前剛就業的努力及心路歷程。接著就說：&quot;這樣好了，給你一個favor，這個月先不扣，在一個月沒考過先扣1000，在沒考過扣2000。&quot;當下我也只能答應了...當下我真的感覺被羞辱了...我覺得我好像乞丐，需要他給的&quot;favor&quot;...&lt;br /&gt;
&lt;br /&gt;
接下來我一樣過著上班寫程式，下班讀書的日子。有一天，想說回家讀書，因為實在很不習慣在辦公室讀書；所以我晚上八點就回家了。隔天主管又找我談話了：&quot;你昨天怎麼那麼早回家？讓你有不用去上課、開會的特權是要讓你留下來念書耶！不是讓你跑回家休息喔！&quot;我說：&quot;我是回家看書阿，因為我習慣在家看書。&quot; 接著主管說：&quot;在辦公室看書跟在家看書應該不會差多少吧？你留下來我們才看得到你在念書啊，這樣人家才會認為你有在認真、努力，這樣知道嗎？記得喔！你不用上課、開會是要留下來看書喔！&quot;接著我就不打算跟他多說甚麼了...&lt;br /&gt;
&lt;br /&gt;
以上對話詭異的地方是：大家都去開會、上課了，辦公室只剩我一個人，誰看的到我在念書？就算看我打卡時間，怎麼能夠保證我一定是在念書，而不是在摸魚？意義在哪裡？沒有事情也要我留在辦公室，就算是要回家看考試的書也會有意見，為什麼？那是不是以後不用考試或開會的話，我是不是也要留到晚上十點？&lt;br /&gt;
&lt;br /&gt;
總結來說，如果今天要趕專案，我可以而且非常願意加班來達到目標，但是沒理由的要我留下來加班？很抱歉，做不到。再來，調降底薪是否合法，我心存懷疑...(查了一下，應該是不能調，但特殊狀況要特殊處理)。最後，公司要求的任務及工作內容為什麼不能在上班時間執行？例如公司內部的考試是否得要用自己的下班時間準備？&lt;br /&gt;
&lt;br /&gt;
要進這家公司真的要考慮一下，在我進去之前，最菜的同仁年資是四個月。在他進公司到我進公司的這四個月內，已經走了差不多兩到三個人(同個部門)...&lt;br /&gt;
&lt;br /&gt;
那可能會有人說：面試的時候都沒有說道以上這些情況嗎？當然是有說囉，只是會有&quot;誤差&quot;。這誤差是故意還是無意，就帶我有空時再來寫寫我面試的情況。&lt;br /&gt;
&lt;br /&gt;
還好我辭職了！YA！</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/7949770412237204722/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2013/11/x.html#comment-form' title='15 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/7949770412237204722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/7949770412237204722'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2013/11/x.html' title='[工作經驗]訊達電腦'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-2362096575182223675</id><published>2011-03-09T05:45:00.000-08:00</published><updated>2013-11-05T04:42:40.964-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="函式"/><title type='text'>C/C++:計算指定資料夾的檔案數</title><content type='html'>&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; count_file_num_in_a_folder&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt; target_folder &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #603000;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;                &lt;span style=&quot;color: dimgrey;&quot;&gt;//檔案的counter&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;char&lt;/span&gt; szDir&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;           &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;//要讀取的資料夾的位址。 &lt;/span&gt;
    &lt;span style=&quot;color: #603000;&quot;&gt;WIN32_FIND_DATA&lt;/span&gt; FileData&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;    &lt;span style=&quot;color: dimgrey;&quot;&gt;//指著目前讀取到的File的指標。&lt;/span&gt;
    &lt;span style=&quot;color: #603000;&quot;&gt;HANDLE&lt;/span&gt; hList&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;                &lt;span style=&quot;color: dimgrey;&quot;&gt;//指著要讀取的資料夾的指標。&lt;/span&gt;
    sprintf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;szDir&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;target_folder &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;hList &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #400000;&quot;&gt;FindFirstFile&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;szDir&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;&amp;amp;&lt;/span&gt;FileData&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;INVALID_HANDLE_VALUE &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color: #603000;&quot;&gt;cout&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;No directories be found.&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;endl&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;endl&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;FindNextFile&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;hList&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;&amp;amp;&lt;/span&gt;FileData&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;GetLastError&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; ERROR_NO_MORE_FILES&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
                    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #603000;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #400000;&quot;&gt;FindClose&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;hList&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #603000;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;用途：&lt;br /&gt;
計算指定資料夾裡的檔案個數。&lt;br /&gt;
用法：&lt;br /&gt;
/*&lt;br /&gt;
char folder_adderss[128]=&quot;..\\testing_folder\\&quot;; &lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;//testing_folder為指定資料夾的名稱&lt;/span&gt;&lt;br /&gt;
count_file_num_in_a_folder(folder_address);&lt;br /&gt;
*/&lt;br /&gt;
附註：&lt;br /&gt;
若testing_folder裡面有5個資料夾、3個檔案，則此函式會回傳5+3=8。而count會設成&quot;-1&quot;是因為FindFirstFile&quot;會將[上層目錄]也是為檔案，因此若不想將[上層目錄]也視為檔案的話記得要將count設成&quot;-1&quot;；否則，則設為0。</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/2362096575182223675/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/cc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/2362096575182223675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/2362096575182223675'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/cc.html' title='C/C++:計算指定資料夾的檔案數'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-6323436079295032803</id><published>2011-03-09T05:12:00.000-08:00</published><updated>2011-03-09T05:50:17.971-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Delete"/><category scheme="http://www.blogger.com/atom/ns#" term="函式"/><title type='text'>C++:Delete 各種型別的Array (函式) ( delete 的應用 )</title><content type='html'>&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; delete_2D_int_array&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt;arr &lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; x &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt; x &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delete&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt; arr&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delete&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt; arr&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;用途：&lt;br /&gt;
Delete一個2維整數型別的Array。&lt;br /&gt;
用法：&lt;br /&gt;
arr為要刪掉的二維Array的指標，ｘ代表此Array的長。&lt;br /&gt;
/*&lt;br /&gt;
int **arr = create_2Darray_int ( 4 , 5 ); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;//回傳一個指向4*5陣列的指標&lt;/span&gt;&lt;br /&gt;
arr[1][2]=1; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;//用法同一般陣列&lt;/span&gt;&lt;br /&gt;
delete_2D_int_array(arr,4); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;//arr這個矩陣的空間已經釋放了&lt;/span&gt;&lt;br /&gt;
*/&lt;br /&gt;
附註：&lt;br /&gt;
也可以將int變成double、float等資料型別。記得要搭配&lt;a href=&quot;http://candcpluspluswriter.blogspot.com/2011/03/ccreate-array-new.html&quot;&gt;上一篇( C++:Create 各種型別的Array (函數) ( new 的應用 ) )&lt;/a&gt; 使用-&amp;gt;有Create出來的Array記得用完之後要用此函式將其空間釋放!</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/6323436079295032803/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/cdelete-array-delete.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/6323436079295032803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/6323436079295032803'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/cdelete-array-delete.html' title='C++:Delete 各種型別的Array (函式) ( delete 的應用 )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-9216644472726737126</id><published>2011-03-09T04:58:00.000-08:00</published><updated>2011-03-09T05:51:07.165-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="function"/><category scheme="http://www.blogger.com/atom/ns#" term="new"/><category scheme="http://www.blogger.com/atom/ns#" term="函式"/><title type='text'>C++:Create 各種型別的Array (函式) ( new 的應用 )</title><content type='html'>&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt; create_2Darray_int&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; x&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; y&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt;array2D&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;x&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;    
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt; x &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
        array2D&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;y&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; j&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; j&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;y &lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; j&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
            array2D&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;j&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;return&lt;/span&gt; array2D&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;用途：&lt;br /&gt;
Create一個2維整數型別的Array。&lt;br /&gt;
用法：&lt;br /&gt;
ｘ、ｙ代表此Array的長寬，回傳指向一個內部資料為0的2維陣列的指標。&lt;br /&gt;
/*&lt;br /&gt;
int **arr = create_2Darray_int ( 4 , 5 ); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;//回傳一個指向4*5陣列的指標&lt;/span&gt;&lt;br /&gt;
arr[1][2]=1;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt; //用法同一般陣列&lt;/span&gt;&lt;br /&gt;
*/&lt;br /&gt;
附註：&lt;br /&gt;
也可以將int變成double、float等資料型別。如果要宣告很多個陣列時,這個函數就很方便了!Array使用完後，記得要將空間釋放出來，請搭配&lt;a href=&quot;http://candcpluspluswriter.blogspot.com/2011/03/cdelete-array-delete.html&quot;&gt;下一篇( C++:Delete 各種型別的Array (函式) ( delete 的應用 ) )&lt;/a&gt; &lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/9216644472726737126/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/ccreate-array-new.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/9216644472726737126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/9216644472726737126'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/03/ccreate-array-new.html' title='C++:Create 各種型別的Array (函式) ( new 的應用 )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-8148721830435991257</id><published>2011-01-27T23:17:00.000-08:00</published><updated>2011-01-27T23:17:57.728-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="fopen"/><category scheme="http://www.blogger.com/atom/ns#" term="mode"/><title type='text'>C/C++:FILE * fopen ( const char * filename, const char * mode )</title><content type='html'>&lt;div&gt;&lt;table class=&quot;boxed&quot; style=&quot;border-collapse: collapse; color: black; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;r&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Open a file for reading. The file must exist.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;w&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Create an empty file for writing. If a file with the same name already exists its content is erased and the file is treated as a new empty file.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;a&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Append to a file. Writing operations append data at the end of the file. The file is created if it does not exist.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;r+&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Open a file for update both reading and writing. The file must exist.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;w+&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Create an empty file for both reading and writing. If a file with the same name already exists its content is erased and the file is treated as a new empty file.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;&quot;a+&quot;&lt;/td&gt;&lt;td style=&quot;border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-top-color: black; border-top-style: solid; border-top-width: 1px;&quot;&gt;Open a file for reading and appending. All writing operations are performed at the end of the file, protecting the previous content to be overwritten. You can reposition (&lt;a href=&quot;http://www.cplusplus.com/fseek&quot; style=&quot;color: #000070; text-decoration: none;&quot;&gt;fseek&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://www.cplusplus.com/rewind&quot; style=&quot;color: #000070; text-decoration: none;&quot;&gt;rewind&lt;/a&gt;) the internal pointer to anywhere in the file for reading, but writing operations will move it back to the end of file. The file is created if it does not exist.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Reference:&amp;nbsp;&lt;a href=&quot;http://www.cplusplus.com/reference/clibrary/cstdio/fopen/&quot;&gt;http://www.cplusplus.com/reference/clibrary/cstdio/fopen/&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/8148721830435991257/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccfile-fopen-const-char-filename-const.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/8148721830435991257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/8148721830435991257'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccfile-fopen-const-char-filename-const.html' title='C/C++:FILE * fopen ( const char * filename, const char * mode )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-4980606979601073700</id><published>2011-01-23T22:53:00.000-08:00</published><updated>2011-01-23T22:53:35.511-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="好用網站"/><category scheme="http://www.blogger.com/atom/ns#" term="程式碼"/><title type='text'>將程式碼的格式轉換成html</title><content type='html'>&lt;a href=&quot;http://www.tohtml.com/&quot;&gt;http://www.tohtml.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
將程式碼貼在文字框內，然後再type的地方選擇程式語言。接著點選&quot;Highlight&quot;的按鈕就會產生包含程式碼格式的Html語法了。</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/4980606979601073700/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/html.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4980606979601073700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4980606979601073700'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/html.html' title='將程式碼的格式轉換成html'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-7751394613185907333</id><published>2011-01-22T21:53:00.000-08:00</published><updated>2011-01-23T22:43:10.508-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="批次"/><category scheme="http://www.blogger.com/atom/ns#" term="檔名"/><category scheme="http://www.blogger.com/atom/ns#" term="讀檔"/><title type='text'>C/C++:批次讀取指定資料夾內所有檔案的檔名</title><content type='html'>&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;&lt;span style=&#39;color:#004a43; &#39;&gt;#&lt;/span&gt;&lt;span style=&#39;color:#004a43; &#39;&gt;include &lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#40015a; &#39;&gt;windows.h&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&gt;&lt;/span&gt;
&lt;span style=&#39;color:#004a43; &#39;&gt;#&lt;/span&gt;&lt;span style=&#39;color:#004a43; &#39;&gt;include &lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#40015a; &#39;&gt;stdio.h&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&gt;&lt;/span&gt;
&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;void&lt;/span&gt; &lt;span style=&#39;color:#400000; &#39;&gt;main&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;
&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;
    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;char&lt;/span&gt; InputPath&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;65535&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; &lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;C:&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\\&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;Program Files&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\\&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;  
    &lt;span style=&#39;color:#696969; &#39;&gt;//放要讀取檔案的資料夾路徑到InputPath字串裡&lt;/span&gt;
    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;char&lt;/span&gt; szDir&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;65535&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;char&lt;/span&gt; dir&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;65535&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    &lt;span style=&#39;color:#603000; &#39;&gt;WIN32_FIND_DATA&lt;/span&gt; FileData&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    &lt;span style=&#39;color:#603000; &#39;&gt;HANDLE&lt;/span&gt;          hList&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    sprintf&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;szDir&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;%s&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\\&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;*&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; InputPath &lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;hList &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; &lt;span style=&#39;color:#400000; &#39;&gt;FindFirstFile&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;szDir&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;&amp;amp;&lt;/span&gt;FileData&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;INVALID_HANDLE_VALUE &lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;
        printf&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;No files be found.&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\n&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\n&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt; &lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;
        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;while&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;
            &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;!&lt;/span&gt;&lt;span style=&#39;color:#400000; &#39;&gt;FindNextFile&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;hList&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;&amp;amp;&lt;/span&gt;FileData&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;
                &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#400000; &#39;&gt;GetLastError&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; ERROR_NO_MORE_FILES&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;
                    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;break&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
            &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
            sprintf&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;dir&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; &lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;%s&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\\&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;%s&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; InputPath&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; FileData&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;cFileName&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
            printf&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;%s&lt;/span&gt;&lt;span style=&#39;color:#0f69ff; &#39;&gt;\n&lt;/span&gt;&lt;span style=&#39;color:#800000; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;,&lt;/span&gt; dir&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
        &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
    &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
    &lt;span style=&#39;color:#400000; &#39;&gt;FindClose&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;hList&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;;&lt;/span&gt;
&lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/7751394613185907333/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/cc.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/7751394613185907333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/7751394613185907333'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/cc.html' title='C/C++:批次讀取指定資料夾內所有檔案的檔名'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-1481766698791589821</id><published>2011-01-20T01:17:00.000-08:00</published><updated>2011-01-20T01:18:18.591-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Image"/><title type='text'>Image database website</title><content type='html'>&lt;div&gt;各種Image的Database:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href=&quot;http://vision.stanford.edu/resources_links.html&quot;&gt;Stanford Vision Lab&lt;/a&gt; by Fei-Fei Li, PHD&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Reference:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://vision.stanford.edu/index.html&quot;&gt;http://vision.stanford.edu/index.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/1481766698791589821/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/image-database-website.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/1481766698791589821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/1481766698791589821'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/image-database-website.html' title='Image database website'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-3360155040875067818</id><published>2011-01-20T01:09:00.000-08:00</published><updated>2011-01-20T01:12:24.935-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="SIFT"/><category scheme="http://www.blogger.com/atom/ns#" term="程式碼"/><title type='text'>C/C++:好用的SIFT程式碼</title><content type='html'>&lt;div&gt;作者:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://blogs.oregonstate.edu/hess/&quot;&gt;Rob Hess&lt;/a&gt;&lt;/div&gt;&lt;div&gt;程式:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://web.engr.oregonstate.edu/~hess/downloads/sift/sift-latest_win.zip&quot;&gt;點我下載 for Windows (VC++)&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://web.engr.oregonstate.edu/~hess/downloads/sift/sift-latest.tar.gz&quot;&gt;點我下載&amp;nbsp;for Linux&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;原創論文:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf&quot;&gt;David G. Lowe, Distinctive Image Features from Scale-Invariant Keypoints,&amp;nbsp;International Journal of Computer Vision, 2004.&lt;/a&gt;&lt;/div&gt;&lt;div&gt;原創程式:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.cs.ubc.ca/~lowe/keypoints/siftDemoV4.zip&quot;&gt;點我下載(David G. Lowe版本)&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;[以下講解的是Rob Hess版本在Windows VC++的SIFT]&lt;/div&gt;&lt;div&gt;..\\SIFT\\dspFeat 為用來顯示SIFT feature的專案，開啟專案並compile後會在測試圖片上顯示代表SIFT的箭頭。&amp;nbsp;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;顯示結果：&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8_VfhAT7lm173t01flb4dxBg60B1ArUNYLgWwl2UuhH-gZt3VCSSCpI2OGnaOcSFehvJg6pxFZ67xm4Wc4TWBT5MECTdil0ps0C1LQthzE1U9KTJnqEqddoVJLYYq9GMCNm2eMAEmw/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8_VfhAT7lm173t01flb4dxBg60B1ArUNYLgWwl2UuhH-gZt3VCSSCpI2OGnaOcSFehvJg6pxFZ67xm4Wc4TWBT5MECTdil0ps0C1LQthzE1U9KTJnqEqddoVJLYYq9GMCNm2eMAEmw/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;..\\SIFT\\match是用來顯示兩張圖在SIFT feature的比對情形的專案，相連的兩個點表示這兩個SIFT feature是一樣的。&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;顯示結果：&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkwradoS73kouThmdz1dlHa6nVogwqvsMPTbSkW7BsaEb2XSaj2aQGQQ4P6_jpmZW3jYV63dm3j-Co_Q4NDzwf42LXRMDdK1e9FqPoIobqJgOXG074X4uRE14YKQG37wrot7iybpxZBA/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkwradoS73kouThmdz1dlHa6nVogwqvsMPTbSkW7BsaEb2XSaj2aQGQQ4P6_jpmZW3jYV63dm3j-Co_Q4NDzwf42LXRMDdK1e9FqPoIobqJgOXG074X4uRE14YKQG37wrot7iybpxZBA/s400/2.png&quot; width=&quot;353&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;..\\SIFT\\siftFeat會顯示出SIFT在圖片上的分布情形，計算出在圖片上找到多少個SIFT點，並將SIFT的個數、維度、座標、向量都寫在檔案*.sift裡，方便日後要使用SIFT資料，不用重新計算SIFT，可以直接使用讀檔方式進行運用。&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;顯示結果：&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDWWSa44lWEuFnghd1fZmUXoTIYjNcitrpoCPi2tgZSeqmkrZymdEVf7FdwoFAfhUPjv_I08nUXdT6I4bqAdIBcGQsbUGuSbiaR-_5JL-mGk4KkrZ8EISTm55AiKLFn8KjuJfwFqsuDA/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDWWSa44lWEuFnghd1fZmUXoTIYjNcitrpoCPi2tgZSeqmkrZymdEVf7FdwoFAfhUPjv_I08nUXdT6I4bqAdIBcGQsbUGuSbiaR-_5JL-mGk4KkrZ8EISTm55AiKLFn8KjuJfwFqsuDA/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href=&quot;http://blogs.oregonstate.edu/hess/&quot;&gt;http://blogs.oregonstate.edu/hess/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cs.ubc.ca/~lowe/&quot;&gt;http://www.cs.ubc.ca/~lowe/&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/3360155040875067818/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccsift.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/3360155040875067818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/3360155040875067818'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccsift.html' title='C/C++:好用的SIFT程式碼'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8_VfhAT7lm173t01flb4dxBg60B1ArUNYLgWwl2UuhH-gZt3VCSSCpI2OGnaOcSFehvJg6pxFZ67xm4Wc4TWBT5MECTdil0ps0C1LQthzE1U9KTJnqEqddoVJLYYq9GMCNm2eMAEmw/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-4588448653796853026</id><published>2011-01-20T00:39:00.000-08:00</published><updated>2011-01-20T01:12:51.578-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Visual Studio 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCV 2.1"/><title type='text'>C/C++:Microsoft Visual Studio 2008使用OpenCV 2.1</title><content type='html'>OpenCV 2.1:&lt;a href=&quot;http://www.opencv.org.cn/download/OpenCV-2.1.0-win32-vs2008.exe&quot;&gt;點我下載&lt;/a&gt;(Microsoft Visual Studio 2008專用版)&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Step 1.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;/span&gt;安裝 Microsoft Visual Studio 2008。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Step 2.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;/span&gt;安裝&amp;nbsp;OpenCV 2.1。&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Step 3.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;/span&gt;打開Microsoft Visual Studio 2008，選擇Tools -&amp;gt; Options -&amp;gt; Projects and Solutions -&amp;gt; VC++ Directories，在 &quot;Show directories for:&quot; 選擇Include files，加入目錄 C:\OpenCV2.1\include\opencv。在 &quot;Show directories for:&quot;&amp;nbsp;選擇Library files，加入目錄 C:\OpenCV2.1\lib，按下&quot;OK&quot;，關閉Microsoft Visual Studio 2008。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0k05Af0V6J-8_RmGiF50FSfeVyFJWxLmJ5DC3jK09R6_8gVrUM3Z-UNfj21D24n9c2N_lqZSQ_RTzLNHkGYjXb6ApuDwbA6QAgH0DJe5f4mtg7GjmZwEOyuC5zy_Kx0qp0HsNr4mcg/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0k05Af0V6J-8_RmGiF50FSfeVyFJWxLmJ5DC3jK09R6_8gVrUM3Z-UNfj21D24n9c2N_lqZSQ_RTzLNHkGYjXb6ApuDwbA6QAgH0DJe5f4mtg7GjmZwEOyuC5zy_Kx0qp0HsNr4mcg/s320/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi73wZ7smD2lXT9hSR5Shl98XHfXqSrUqDjUP9DCr8XuG20XKfdyfSLVB7lZxURNVr20iTJ_TR8HZdqev6gWSlqFnukZCsQa7HW3M-PxlUoJfFaT2PwkrMuMZafEscCgYM1U37uh4ruhg/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi73wZ7smD2lXT9hSR5Shl98XHfXqSrUqDjUP9DCr8XuG20XKfdyfSLVB7lZxURNVr20iTJ_TR8HZdqev6gWSlqFnukZCsQa7HW3M-PxlUoJfFaT2PwkrMuMZafEscCgYM1U37uh4ruhg/s320/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;以上安裝步驟參考&lt;a href=&quot;http://www.opencv.org.cn/index.php/VC_2008_Express%E4%B8%8B%E5%AE%89%E8%A3%85OpenCV2.0/2.1&quot;&gt;這裡&lt;/a&gt;，因為OpenCV 2.1與以前版本有些不同，可以省略一些步驟。接著開始進行編寫自己的專案，請看Step 4。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Step 4.&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;http://www.opencv.org.cn/index.php/VC_2008_Express%E4%B8%8B%E5%AE%89%E8%A3%85OpenCV2.0/2.1#.E4.BD.BF.E7.94.A8OpenCV_2.0.E7.BC.96.E7.A8.8B&quot;&gt;請看這邊&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href=&quot;http://www.opencv.org.cn/index.php/%E9%A6%96%E9%A1%B5&quot;&gt;http://www.opencv.org.cn/index.php/%E9%A6%96%E9%A1%B5&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/4588448653796853026/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccmicrosoft-visual-studio-2008opencv-21.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4588448653796853026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/4588448653796853026'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/ccmicrosoft-visual-studio-2008opencv-21.html' title='C/C++:Microsoft Visual Studio 2008使用OpenCV 2.1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0k05Af0V6J-8_RmGiF50FSfeVyFJWxLmJ5DC3jK09R6_8gVrUM3Z-UNfj21D24n9c2N_lqZSQ_RTzLNHkGYjXb6ApuDwbA6QAgH0DJe5f4mtg7GjmZwEOyuC5zy_Kx0qp0HsNr4mcg/s72-c/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3105979800746457543.post-6576456130210800661</id><published>2011-01-19T22:40:00.000-08:00</published><updated>2011-01-23T23:45:22.355-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="_mkdir()"/><category scheme="http://www.blogger.com/atom/ns#" term="_rmdir()"/><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="指定路徑"/><category scheme="http://www.blogger.com/atom/ns#" term="新增"/><category scheme="http://www.blogger.com/atom/ns#" term="資料夾"/><title type='text'>C/C++:在指定路徑新增資料夾(_mkdir(), _rmdir() )</title><content type='html'>&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;direct.h&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #004a43;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;stdlib.h&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #004a43;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;stdio.h&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #400000;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;char&lt;/span&gt; path&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;_MAX_PATH&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: dimgrey;&quot;&gt;// _MAX_PATH is defined in windows.h&lt;/span&gt;
   sprintf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;path&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; _mkdir&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; path &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
   &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
      printf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;資料夾&#39;D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&#39;新增成功&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
      system&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;dir D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
      system&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;pause&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
      &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; _rmdir&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; path &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
        printf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;資料夾&#39;D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&#39;移除成功&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;  &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
      &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt;
        printf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;無法移除&#39;D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt;
     printf&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;無法新增&#39;D:&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;testtmp&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f69ff;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
     system&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;pause&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/2fkk4dzw(v=VS.90).aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/2fkk4dzw(v=VS.90).aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://candcpluspluswriter.blogspot.com/feeds/6576456130210800661/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/include-main-void-char-pathmaxpath.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/6576456130210800661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3105979800746457543/posts/default/6576456130210800661'/><link rel='alternate' type='text/html' href='http://candcpluspluswriter.blogspot.com/2011/01/include-main-void-char-pathmaxpath.html' title='C/C++:在指定路徑新增資料夾(_mkdir(), _rmdir() )'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>