Pages

Ads 468x60px

Labels

Friday, March 16, 2012

Include Header File C/C++ : Quotes vs Brackets

 The answer is that angled brackets are used to tell the compiler that we are including a header file that was included with the compiler. The double-quotes tell the compiler that this is a header file we are supplying, which causes it to look for that header file in the current directory containing our source code first. 
Source : http://www.learncpp.com/cpp-tutorial/19-header-files/


Trong C/C++, ở phần include thì ta khai báo <iostream>  để thông báo với compiler rằng  header file này là sẵn có, còn ta dùng  "caigido.h" tức là header file do người lập trình tạo ra - khi ấy compiler sẽ tìm trong thư mục chứa source code của chúng ta trước .
 

Sample text

Sample Text

Sample Text

Everyday, I wake up asking my-self : what is the purpose of Life ?

 
Blogger Templates