#include and # include 'file'
What is the difference between #include and #include 'file'?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Priya LingeRank #785 · 2.9K reputationPosted Dec 25, 2011, 8:27 PM EST
1) There is no include statement in C#. Like C++; C# goes by namespaces. Well, there is an, but it was meant for accessing XML comments in another file.
2)
Please check below link.
http://msdn.microsoft.com/en-us/library/9h8dy30z(v=vs.71).aspx
Thanks.
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 25, 2011, 9:07 PM EST
When writing your C program, you can include files in two ways.
#include searches the file in the specified list of directories.It is a build in file.
#include"file" searches the file in the current working directory as wel as in the specified list of directories.It is created by user.
Thanks
VulpesRank #55 · 29.2K reputationPosted Dec 26, 2011, 12:57 AM EST