這個範例主要是要提供一個函式SearchFile,透過他可以透過萬用字元的方式來找尋特定目錄下的檔案。
舉例來說,如果你想找出c:\windows下面的所有執行檔。您就可以透過這個函式找出來。
目前分類:C/C++ 程式設計 (73)
- Jun 22 Wed 2005 22:36
魚與熊掌可兼得: vim和source insight的配合使用
- Jun 20 Mon 2005 22:52
Install C++ Boost

- Jun 05 Sun 2005 14:26
C++資源之不完全導引(完整版)
- Jun 02 Thu 2005 03:19
[BCB] 使用萬用字元的方式搜尋檔案
- May 31 Tue 2005 20:27
指標函數和函數指標有什麼區別
- May 31 Tue 2005 03:30
typedef 知多少?
- May 30 Mon 2005 23:00
何謂callback function?
何謂callback function?
簡單的說,如果你使用了某個function,那麼你就是『call』了一個function。如果系統或是函式是要求你給一個function pointer,這個function pointer指到一個實際的函式(多半這個函式是你自己寫的)。然後它會在適當的時間呼叫此function,則此function就是所謂的 callback function。因為這個function是被『callback』了。
- May 27 Fri 2005 01:16
Programming in C++ - User-Defined Types ...
- May 27 Fri 2005 00:53
Programming in C++ - Sorting Array Data
- May 27 Fri 2005 00:47
Programming in C++ - Array Type Problems
- May 25 Wed 2005 00:29
How do I compile C++ code?
- May 25 Wed 2005 00:14
How to Compile C++ with gcc
How to Compile C++ with gcc
- Jan 08 Sat 2005 07:08
"Right-Left" Rule
- Jan 07 Fri 2005 01:20
The cplusplus.com tutorial
Introduction Instructions for use |
- Jan 07 Fri 2005 01:14
Programming in C++ - In-Depth Look at Functions...
- Jan 06 Thu 2005 01:12
C++ - Text Files, Strings, Random Numbers...
- Jan 06 Thu 2005 01:11
C++ - Control Structures and Formatting Output
Using Sentinel Values
- Jan 05 Wed 2005 01:08
C++ - Controlling Execution With Control Structure
Control Structures
- Jan 04 Tue 2005 01:00
Programming in C++ - Type Conversions
Type Conversion
- Jan 03 Mon 2005 00:59
Programming in C++ - C++ Basics
C++ syntax
The syntax of C++ is extremely critical. By definition, syntax is the rules governing the formation of statements in a programming language. In other words, it is the specific language (code) you use to turn algorithms into programs and specifc rules you have to follow when programming with C++. As you will find out, if you make one small mistake when writing code, the compiler will notify you of the syntax error when you try to run it. C++, like all languages, is very picky when it comes to syntax. Let's look at a simple example program written in C++.